From 1a36f396af6dc26e8d5cb7e8583bd2ba46fe86b4 Mon Sep 17 00:00:00 2001 From: Andrey Rusakov Date: Fri, 6 Sep 2024 12:58:08 +0200 Subject: [PATCH] Update readme file --- README.md | 2 +- default_settings.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ca4e0fa..59984d27 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ For OpenID authentication, Geoshop uses [mozilla-django-oidc](https://github.com .env variables are usually enough: ```python -ZITADEL_ENABLED = True|False # Toggle Zitadel authentication globally. +OIDC_ENABLED = True|False # Toggle Zitadel authentication globally. OIDC_OP_BASE_URL = "..." # Your Zitadel instance url (something like https://geoshop-demo-abcdef.zitadel.cloud) OIDC_REDIRECT_BASE_URL = "http://localhost:8000" # Where the service lives, different for local server or docker container ZITADEL_PROJECT = "..." diff --git a/default_settings.py b/default_settings.py index 8b5395ef..9f82df89 100644 --- a/default_settings.py +++ b/default_settings.py @@ -82,6 +82,7 @@ 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ + 'oidc.status', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', @@ -327,4 +328,4 @@ def discover_endpoints(discovery_url: str) -> dict: LOGIN_REDIRECT_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/oidc/callback" LOGOUT_REDIRECT_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/" - LOGIN_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/oidc/authenticate" \ No newline at end of file + LOGIN_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/oidc/authenticate"