Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
7e2700c2
Commit
7e2700c2
authored
Oct 18, 2018
by
BAIRE Anthony
Browse files
add an env var for configuring the gitlab oauth url
parent
f9ce65d5
Pipeline
#44763
failed with stage
in 1 minute and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
django/config/env.py
View file @
7e2700c2
...
...
@@ -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
#
...
...
django/config/settings.py
View file @
7e2700c2
...
...
@@ -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'
],
},
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment