Commit 8f3074da authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Merge branch 'configure-gitlab-url' into 'django'

add an env var for configuring the gitlab oauth url

See merge request !148
parents 382b0622 7e2700c2
Pipeline #45092 failed with stage
in 51 seconds
......@@ -58,6 +58,13 @@ with env_loader.EnvironmentVarLoader(__name__, "ALLGO_",
default="127.0.0.1/32",
help="Comma-separated list of IP networks from where admin tokens (for the open-bar runners and for the controller) can be requested")
#
# authentication
#
env_var("ALLGO_AUTH_GITLAB_URL", default="https://gitlab.inria.fr",
help="Url of the gitlab identity provider")
#
# runner
#
......
......@@ -258,7 +258,7 @@ ACCOUNT_PRESERVE_USERNAME_CASING = False # force lowercase on username
SOCIALACCOUNT_PROVIDERS = {
'gitlab': {
'GITLAB_URL': 'https://gitlab.irisa.fr',
'GITLAB_URL': env.ALLGO_AUTH_GITLAB_URL,
'SCOPE': ['read_user'],
},
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment