Skip to content

Commit

Permalink
Update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov authored and lanseg committed Sep 6, 2024
1 parent af8af16 commit 1a36f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "..."
Expand Down
3 changes: 2 additions & 1 deletion default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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"
LOGIN_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/oidc/authenticate"

0 comments on commit 1a36f39

Please sign in to comment.