|
|
@ -15,8 +15,8 @@ class Social(APIView): |
|
|
|
'redirect_path': '/social/complete/okta-oauth2', |
|
|
|
'authorize_url': |
|
|
|
'https://' + settings.SOCIALACCOUNT_PROVIDERS.get('okta').get('OKTA_BASE_URL') |
|
|
|
+ '/oauth2/v1/authorize?response_type=code&client_id=' |
|
|
|
+ settings.SOCIALACCOUNT_PROVIDERS.get('okta').get('APP').get('client_id') |
|
|
|
+ '&scope=openid&state=unknown&response_mode=form_post', |
|
|
|
+ '/oauth2/v1/authorize?response_type=code&client_id=' |
|
|
|
+ settings.SOCIALACCOUNT_PROVIDERS.get('okta').get('APP').get('client_id') |
|
|
|
+ '&scope=openid&state=unknown&response_mode=form_post', |
|
|
|
} if settings.SOCIALACCOUNT_PROVIDERS.get('okta').get('OKTA_BASE_URL') else {}, |
|
|
|
}) |