Skip to content

Commit

Permalink
Update and extend Mail.ru OAuth2 docs (#73)
Browse files Browse the repository at this point in the history
* Update and extend Mail.ru OAuth2 docs
* Fix header underline

Co-authored-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
atnartur and nijel committed Feb 5, 2021
1 parent 6d80c09 commit 5955eee
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/backends/mailru.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
Mail.ru OAuth
=============

Mail.ru uses OAuth2 workflow, to use it fill in settings::
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 = ''

.. _Register new application: https://oauth.mail.ru/app/
.. _Create an app: https://api.mail.ru/sites/my/add

0 comments on commit 5955eee

Please sign in to comment.