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

mailru-oauth2

social_core.backends.mailru.MailruOAuth2

mailru

social_core.backends.mailru.MRGOAuth2

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.

Legacy OAuth2 authorization

Also available social_core.backends.mailru.MailruOAuth2 for authorization with connect.mail.ru server.

Create an app and set following settings:

SOCIAL_AUTH_MAILRU_OAUTH2_KEY = ''
SOCIAL_AUTH_MAILRU_OAUTH2_SECRET = ''