M6: OAUTH_CLIENT_SECRET optional (public+PKCE default) #9

Merged
spektr merged 1 commits from m6/openwebui-oidc-secret-optional into main 2026-11-11 19:56:58 +01:00
2 changed files with 4 additions and 2 deletions
@@ -44,6 +44,8 @@ open_webui_data_dir: /var/lib/ghostnet-ai/production/openwebui-data
open_webui_oidc_enabled: false
open_webui_oidc_client_id: gnai-openwebui
open_webui_oidc_client_secret_secret: openwebui-oidc-client-secret
# Public client with PKCE needs no secret; set true only for a confidential client.
open_webui_oidc_use_client_secret: false
open_webui_oidc_provider_url: https://auth.ghostnet.selfhost.eu/realms/Ghost.net/.well-known/openid-configuration
open_webui_public_url: https://chat.ghostnet.selfhost.eu
@@ -24,8 +24,8 @@ Environment=OPENID_PROVIDER_URL={{ open_webui_oidc_provider_url }}
Environment=OAUTH_CLIENT_ID={{ open_webui_oidc_client_id }}
Environment=OAUTH_SCOPES=openid email profile
Environment=OAUTH_PROVIDER_NAME=Keycloak
Secret={{ open_webui_oidc_client_secret_secret }},type=env,target=OAUTH_CLIENT_SECRET
{% endif %}
{% if open_webui_oidc_use_client_secret %}Secret={{ open_webui_oidc_client_secret_secret }},type=env,target=OAUTH_CLIENT_SECRET
{% endif %}{% endif %}
[Service]
Restart=on-failure