mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored and solved bugs
This commit is contained in:
23
roles/docker-taiga/templates/oidc/local.py.j2
Normal file
23
roles/docker-taiga/templates/oidc/local.py.j2
Normal file
@@ -0,0 +1,23 @@
|
||||
INSTALLED_APPS += [
|
||||
"mozilla_django_oidc",
|
||||
"taiga_contrib_oidc_auth",
|
||||
]
|
||||
|
||||
AUTHENTICATION_BACKENDS = list(AUTHENTICATION_BACKENDS) + [
|
||||
"taiga_contrib_oidc_auth.oidc.TaigaOIDCAuthenticationBackend",
|
||||
]
|
||||
|
||||
ROOT_URLCONF = "settings.urls"
|
||||
|
||||
import os
|
||||
|
||||
OIDC_CALLBACK_CLASS = "taiga_contrib_oidc_auth.views.TaigaOIDCAuthenticationCallbackView"
|
||||
OIDC_RP_SCOPES = os.getenv("OIDC_RP_SCOPES")
|
||||
OIDC_RP_SIGN_ALGO = os.getenv("OIDC_RP_SIGN_ALGO")
|
||||
#OIDC_BASE_URL = "" @todo remove if not needed
|
||||
OIDC_OP_JWKS_ENDPOINT = os.getenv("OIDC_OP_JWKS_ENDPOINT")
|
||||
OIDC_OP_AUTHORIZATION_ENDPOINT = os.getenv("OIDC_OP_AUTHORIZATION_ENDPOINT")
|
||||
OIDC_OP_TOKEN_ENDPOINT = os.getenv("OIDC_OP_TOKEN_ENDPOINT")
|
||||
OIDC_OP_USER_ENDPOINT = os.getenv("OIDC_OP_USER_ENDPOINT")
|
||||
OIDC_RP_CLIENT_ID = os.getenv("OIDC_RP_CLIENT_ID")
|
||||
OIDC_RP_CLIENT_SECRET = os.getenv("OIDC_RP_CLIENT_SECRET")
|
4
roles/docker-taiga/templates/oidc/urls.py
Normal file
4
roles/docker-taiga/templates/oidc/urls.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from taiga.urls import *
|
||||
urlpatterns += [
|
||||
url(r"^oidc/", include("mozilla_django_oidc.urls")),
|
||||
]
|
Reference in New Issue
Block a user