Cognito

Cognito implemented OAuth2 protocol for their authentication mechanism. To enable python-social-auth support follow this steps:

  1. Go to AWS Cognito Console and select Manage User Pools.

  2. Choose an existing pool or create a new one following the Cognito Pool Tutorial.

  3. Create an app (make sure to generate a client secret) and configure a pool domain (Cognito App Configuration):

    SOCIAL_AUTH_COGNITO_KEY = '...'
    SOCIAL_AUTH_COGNITO_SECRET = '...'
    SOCIAL_AUTH_COGNITO_POOL_DOMAIN = '...'
    
  4. Enable the backend:

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social_core.backends.cognito.CognitoOAuth2',
        ...
    )