You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
341 B

2 years ago
2 years ago
2 years ago
2 years ago
  1. from allauth.socialaccount.providers.oauth2.client import OAuth2Client
  2. from allauth.socialaccount.providers.okta.views import OktaOAuth2Adapter
  3. from dj_rest_auth.registration.views import SocialLoginView
  4. class OktaLogin(SocialLoginView):
  5. adapter_class = OktaOAuth2Adapter
  6. callback_url = "/projects"
  7. client_class = OAuth2Client