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>