Mail.ru OAuth¶
Backend classes¶
For Django, choose from these class paths for AUTHENTICATION_BACKENDS.
For other integrations, use the same class paths in the
framework-specific backend setting.
Backend name |
Class path |
|---|---|
|
|
|
|
Mail.ru uses OAuth2 workflow. Register new application to use it and fill in settings:
SOCIAL_AUTH_MAILRU_KEY = ''
SOCIAL_AUTH_MAILRU_SECRET = ''
Add social_core.backends.mailru.MRGOAuth2 to AUTHENTICATION_BACKENDS to activate Mail.ru authorization.
The mailru backend identifies users by the stable id returned by the
userinfo endpoint. Associations created by older social-core releases used the
email address and migrate on the next successful authentication. The legacy
mailru-oauth2 backend already uses its stable uid field.