feat: sso logout url

This commit is contained in:
Philipp Rothmann 2023-03-06 16:15:54 +01:00
parent e6d99ff449
commit 5bbe653775
4 changed files with 8 additions and 3 deletions

View File

@ -21,6 +21,7 @@ COMPOSE_FILE=compose.yml
# OAUTH_NAME
# OAUTH_URL
# OAUTH_CLIENT_ID
# OAUTH_LOGOUT_URL
# SECRET_OAUTH_SECRET_VERSION=v1
# E-MAIL

View File

@ -7,6 +7,7 @@ services:
- OAUTH_NAME
- OAUTH_URL
- OAUTH_CLIENT_ID
- OAUTH_LOGOUT_URL
- SECRET_OAUTH_SECRET_VERSION=V1
secrets:
- oauth_secret

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
api:
image: vikunja/api:0.20.1
image: vikunja/api:0.20.2
environment:
- DOMAIN
- LOG_LEVEL
@ -35,7 +35,7 @@ services:
start_period: 1m
app:
image: vikunja/frontend:0.20.1
image: vikunja/frontend:0.20.3
networks:
- proxy
deploy:

View File

@ -305,13 +305,16 @@ auth:
enabled: {{ env "OAUTH_ENABLED" }}
# The url to redirect clients to. Defaults to the configured frontend url. If you're using Vikunja with the official
# frontend, you don't need to change this value.
# redirecturl: <frontend url>
redirecturl: https://{{ env "DOMAIN" }}/auth/openid/
# A list of enabled providers
providers:
# The name of the provider as it will appear in the frontend.
- name: {{ env "OAUTH_NAME" }}
# The auth url to send users to if they want to authenticate using OpenID Connect.
authurl: {{ env "OAUTH_URL" }}
# The oidc logouturl that users will be redirected to on logout.
# Leave empty or delete key, if you do not want to be redirected.
logouturl: {{ env "OAUTH_LOGOUT_URL" }}
# The client ID used to authenticate Vikunja at the OpenID Connect provider.
clientid: {{ env "OAUTH_CLIENT_ID" }}
# The client secret used to authenticate Vikunja at the OpenID Connect provider.