Merge pull request #111 from djmitche/revert-callback-url

Revert use of OIDC_AUTHENTICATION_CALLBACK_URL
This commit is contained in:
Dustin J. Mitchell 2021-03-26 17:24:27 -04:00 коммит произвёл GitHub
Родитель 34ba07e26e 4a85c0f0d5
Коммит 7d553ea004
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -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;