Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
e95141ac
Commit
e95141ac
authored
5 years ago
by
Jörn Künsemöller
Committed by
Jorrit Schaap
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-138
: Modify docker compose setup for testenv to include OIDC test provider
parent
f9372846
No related branches found
No related tags found
1 merge request
!97
Resolve TMSS-138
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SAS/TMSS/docker/tmss-testenv/docker-compose.yml
+0
-5
0 additions, 5 deletions
SAS/TMSS/docker/tmss-testenv/docker-compose.yml
SAS/TMSS/src/tmss/settings.py
+7
-6
7 additions, 6 deletions
SAS/TMSS/src/tmss/settings.py
with
7 additions
and
11 deletions
SAS/TMSS/docker/tmss-testenv/docker-compose.yml
+
0
−
5
View file @
e95141ac
...
...
@@ -20,8 +20,6 @@ services:
container_name
:
tmss_test_nginx
ports
:
-
"
5005:5005"
networks
:
-
"
tmss"
tmss_test_oidc
:
build
:
context
:
../../test/oidc/docker-test-mozilla-django-oidc/
...
...
@@ -29,9 +27,6 @@ services:
container_name
:
tmss_test_oidc
ports
:
-
"
8088:8088"
networks
:
tmss
:
ipv4_address
:
172.25.0.10
networks
:
tmss
:
driver
:
bridge
...
...
This diff is collapsed.
Click to expand it.
SAS/TMSS/src/tmss/settings.py
+
7
−
6
View file @
e95141ac
...
...
@@ -200,13 +200,14 @@ if "OIDC_RP_CLIENT_ID" in os.environ.keys():
#OIDC_OP_TOKEN_ENDPOINT = "https://localhost:9090/token"
#OIDC_OP_USER_ENDPOINT = "https://localhost:9090/userinfo"
# For talking to Mozilla Identity Provider:
OIDC_RP_CLIENT_ID
=
os
.
environ
.
get
(
'
OIDC_RP_CLIENT_ID
'
,
'
1
'
)
# Secret, do not put real credentials on Git
OIDC_RP_CLIENT_SECRET
=
os
.
environ
.
get
(
'
OIDC_RP_CLIENT_SECRET
'
,
'
secret
'
)
# Secret, do not put real credentials on Git
OIDC_OP_AUTHORIZATION_ENDPOINT
=
"
http://localhost:8088/openid/authorize
"
OIDC_OP_TOKEN_ENDPOINT
=
"
http://localhost:8088/openid/token
"
OIDC_OP_USER_ENDPOINT
=
"
http://localhost:8088/openid/userinfo
"
OIDC_RP_CLIENT_ID
=
os
.
environ
.
get
(
'
OIDC_RP_CLIENT_ID
'
,
'
1
'
)
# Secret, do not put real credentials on Git
OIDC_RP_CLIENT_SECRET
=
os
.
environ
.
get
(
'
OIDC_RP_CLIENT_SECRET
'
,
'
secret
'
)
# Secret, do not put real credentials on Git
OIDC_ENDPOINT_HOST
=
os
.
environ
.
get
(
'
OIDC_ENDPOINT_HOST
'
,
'
tmss_test_oidc
'
)
OIDC_OP_AUTHORIZATION_ENDPOINT
=
"
http://%s:8088/openid/authorize
"
%
OIDC_ENDPOINT_HOST
OIDC_OP_TOKEN_ENDPOINT
=
"
http://%s:8088/openid/token
"
%
OIDC_ENDPOINT_HOST
OIDC_OP_USER_ENDPOINT
=
"
http://%s:8088/openid/userinfo
"
%
OIDC_ENDPOINT_HOST
AUTHENTICATION_BACKENDS
=
(
'
mozilla_django_oidc.auth.OIDCAuthenticationBackend
'
,)
elif
"
TMSS_LDAPCREDENTIALS
"
in
os
.
environ
.
keys
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment