Skip to content

Commit

Permalink
add microsoft-graph backend
Browse files Browse the repository at this point in the history
  • Loading branch information
naritotakizawa authored and nijel committed Aug 9, 2021
1 parent 7ea233b commit 2f807cf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/backends/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Social backends
mediawiki
meetup
mendeley
microsoftgraph
mineid
mixcloud
moves
Expand Down
25 changes: 25 additions & 0 deletions docs/backends/microsoftgraph.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Microsoft Graph
===============


1. Go to `Azure portal`_ and create an application.

2. Fill App Id and Secret in your project settings::

SOCIAL_AUTH_MICROSOFT_GRAPH_KEY = '...'
SOCIAL_AUTH_MICROSOFT_GRAPH_SECRET = '...'


3. Enable the backend::

SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
...
'social_core.backends.microsoft.MicrosoftOAuth2',
...
)

`Register an application with the Microsoft identity platform`_.

.. _Azure portal: https://portal.azure.com/
.. _Register an application with the Microsoft identity platform: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app

0 comments on commit 2f807cf

Please sign in to comment.