Create Identity Pool

POST {{aws_cognito_federated_identities_base_url}}/?Action=CreateIdentityPool

Request Params

KeyDatatypeRequiredDescription
ActionstringEnables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide.

Request Body

{"IdentityPoolName"=>"MyIdentityPool", "AllowUnauthenticatedIdentities"=>true, "SupportedLoginProviders"=>{"graph.facebook.com"=>"7346241598935555", "accounts.google.com"=>"123456789012.apps.googleusercontent.com", "www.amazon.com"=>"amzn1.application-oa2-client.188a56d827a7d6555a8b67a5d", "api.twitter.com"=>"xvz1evFS4wEEPTGEFPHBog;kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw", "www.digits.com"=>"xvz1evFS4wEEPTGEFPHBog;kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw"}}

HEADERS

KeyDatatypeRequiredDescription
X-AMZ-TARGETstring
Content-Typestring

RESPONSES

status: OK

{"AllowUnauthenticatedIdentities":true,"IdentityPoolId":"us-east-1:5e03b587-332d-443f-be00-893eae60015c","IdentityPoolName":"MyIdentityPool","IdentityPoolTags":{},"SupportedLoginProviders":{"accounts.google.com":"123456789012.apps.googleusercontent.com","api.twitter.com":"xvz1evFS4wEEPTGEFPHBog;kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw","graph.facebook.com":"7346241598935555","www.amazon.com":"amzn1.application-oa2-client.188a56d827a7d6555a8b67a5d","www.digits.com":"xvz1evFS4wEEPTGEFPHBog;kAcSOqF21Fu85e7zjz7ZN2U4ZRhfV3WpwPAoE3Z7kBw"}}