Skip to content
Snippets Groups Projects
Commit 60f7ceba authored by Auke Klazema's avatar Auke Klazema
Browse files

Merge branch 'TMSS-310' into 'master'

Resolve TMSS-310

Closes TMSS-310

See merge request !201
parents a6926371 73a32def
No related branches found
No related tags found
1 merge request!201Resolve TMSS-310
# This docker-compose is used to run TMSS together with a test open ID connect server on the User Acceptance system (tmss-ua)
version: "3"
services:
rabbitmq:
image: rabbitmq:latest
hostname: rabbitmq
ports:
- 5672:5672
- 15672:15672
web:
image: nexus.cep4.control.lofar:18080/tmss_django:latest
restart: on-failure
......
......@@ -260,16 +260,15 @@ if "OIDC_RP_CLIENT_ID" in os.environ.keys():
# OPEN-ID CONNECT
OIDC_DRF_AUTH_BACKEND = 'mozilla_django_oidc.auth.OIDCAuthenticationBackend'
# For talking to Mozilla Identity Provider:
OIDC_RP_SCOPES = "openid email profile" # todo: groups are not a standard scope, how to handle those?
OIDC_RP_CLIENT_ID = os.environ.get('OIDC_RP_CLIENT_ID', '2') # 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
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',)
MIDDLEWARE.append('mozilla_django_oidc.middleware.SessionRefresh')
......
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