зеркало из https://github.com/mozilla/mentoring.git
Merge pull request #111 from djmitche/revert-callback-url
Revert use of OIDC_AUTHENTICATION_CALLBACK_URL
This commit is contained in:
Коммит
7d553ea004
|
@ -52,7 +52,6 @@ It requires an Auth0 client be created, with
|
|||
* At least the Mozilla AD connection enabled ("Allowing Mozilla LDAP with MFA")
|
||||
|
||||
Set `DJANGO_OIDC_RP_CLIENT_ID` `DJANGO_OIDC_RP_CLIENT_SECRET` using the resulting credentials.
|
||||
Set `DJANGO_OIDC_AUTHENTICATION_CALLBACK_URL` to `https://<hostname>/oidc/callback` where `<hostname>` is the hostname on which the site appears.
|
||||
|
||||
The UI automatically redirects to the sign-in URL.
|
||||
There is no way to interact with the UI without first signing in.
|
||||
|
|
|
@ -132,7 +132,6 @@ class Production(Base):
|
|||
OIDC_OP_TOKEN_ENDPOINT = "https://auth.mozilla.auth0.com/oauth/token"
|
||||
OIDC_OP_USER_ENDPOINT = "https://auth.mozilla.auth0.com/userinfo"
|
||||
OIDC_OP_AUTHORIZATION_ENDPOINT = "https://auth.mozilla.auth0.com/authorize"
|
||||
OIDC_AUTHENTICATION_CALLBACK_URL = values.Value(environ_required=True)
|
||||
OIDC_RP_SCOPES = "openid email profile"
|
||||
|
||||
# Members of these Mozilla SSO groups will be Django staff, able to perform pairing;
|
||||
|
|
Загрузка…
Ссылка в новой задаче