Skip to content
Snippets Groups Projects
Commit 42e2229f authored by Nico Vermaas's avatar Nico Vermaas
Browse files

Merge branch 'astronauth' into 'master'

Astronauth

See merge request !278
parents 845c0e3c 17830f7c
No related branches found
No related tags found
2 merge requests!279Master,!278Astronauth
Pipeline #43763 passed
...@@ -222,10 +222,15 @@ AUTHENTICATION_BACKENDS = [ ...@@ -222,10 +222,15 @@ AUTHENTICATION_BACKENDS = [
"allauth.account.auth_backends.AuthenticationBackend", "allauth.account.auth_backends.AuthenticationBackend",
] ]
try:
KEYCLOAK_URL = os.environ['KEYCLOAK_URL']
except:
KEYCLOAK_URL = 'https://sdc-dev.astron.nl/auth'
SOCIALACCOUNT_PROVIDERS = { SOCIALACCOUNT_PROVIDERS = {
'keycloak': { 'keycloak': {
'KEYCLOAK_URL': 'https://sdc-dev.astron.nl/auth', # replace by https://keycloak.astron.nl/auth for production 'KEYCLOAK_URL': KEYCLOAK_URL,
'KEYCLOAK_REALM': 'SDC', # change this depending on which realm to use 'KEYCLOAK_REALM': 'SDC',
'SCOPE': ['openid', 'profile', 'email'] 'SCOPE': ['openid', 'profile', 'email']
} }
} }
......
...@@ -24,13 +24,4 @@ DATABASES = { ...@@ -24,13 +24,4 @@ DATABASES = {
AUTH_PASSWORD_VALIDATORS = [] AUTH_PASSWORD_VALIDATORS = []
# astronauth settings
SOCIALACCOUNT_PROVIDERS = {
'keycloak': {
'KEYCLOAK_URL': 'https://sdc-dev.astron.nl/auth', # replace by https://keycloak.astron.nl/auth for production
'KEYCLOAK_REALM': 'SDC', # change this depending on which realm to use
'SCOPE': ['openid', 'profile', 'email']
}
}
LOGIN_REDIRECT_URL = "http://localhost:8000/atdb" LOGIN_REDIRECT_URL = "http://localhost:8000/atdb"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment