Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 429 Bytes

README.md

File metadata and controls

18 lines (18 loc) · 429 Bytes

Django OAuth2 client

Quick start

Include oauth2_client.urls in your project urls.py:

path('oauth2/', include('oauth2_client.urls')),

Add variables to settings:

OAUTH2_SERVER = ''        # server address
OAUTH2_CLIENT_ID = ''     # application's id
OAUTH2_CLIENT_SECRET = '' # application's secret

New endpoints:

/oauth2/login/
/oauth2/logout/?token=<token>
/oauth2/refresh/?refresh_token=<token>