Skip to content
Snippets Groups Projects

Astronauth

Merged Nico Vermaas requested to merge astronauth into master
2 files
+ 7
11
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
2
@@ -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']
}
}
}
}
Loading