I am having difficulty using python-social-auth's implementation with Google.
The error I am receiving is 400: OpenID auth request contains an unregistered domain.
I have checked and rechecked and asked another developer to check the credentials for the project in the Google developers' console, and it all looks good.
I have used python-social-auth successfully in a past Django project, but this time around a solution to this escapes me.
The only differences (as far as I can tell) between this project and the last are:
- This site is currently a subdomain (
test.domain.com) - It is behind a Linode load balancer - the two application servers respond on static IPs to the balancer, nginx is configured for the doamin/subdomain, and my DNS records have been updated.
I am aware that Google is in the process of deprecating OpenID, but by settings are configured to use OAuth2:
AUTHENTICATION_BACKENDS = (
'social.backends.open_id.OpenIdAuth',
'social.backends.google.GoogleOAuth2',
'social.backends.google.GoogleOAuth',
'social.backends.google.GoogleOpenId',
'social.backends.facebook.FacebookOAuth2',
'django.contrib.auth.backends.ModelBackend',
# custom password checker - migrating from old rails site, want to preserve old passwords
'auth.authentication.legacy_hasher.LegacyCustomerAuthBackend',
)
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.environ.get('SOCIAL_AUTH_GOOGLE_OAUTH2_KEY', 'redacted-key')
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.environ.get('SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET', 'redacted-key')
Is there something that I missed, or something that I failed to configure?