From a96ec5d185fa3f4b4b899ba8afbbf89e2420011c Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Thu, 1 Jan 2026 12:19:41 +0100 Subject: [PATCH] add new auth audiobookshelf --- apps/charts/audiobookshelf/templates/client.yaml | 13 ------------- apps/charts/audiobookshelf/templates/oidc.yaml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 apps/charts/audiobookshelf/templates/client.yaml create mode 100644 apps/charts/audiobookshelf/templates/oidc.yaml diff --git a/apps/charts/audiobookshelf/templates/client.yaml b/apps/charts/audiobookshelf/templates/client.yaml deleted file mode 100644 index 6f94876..0000000 --- a/apps/charts/audiobookshelf/templates/client.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: OidcClient -metadata: - name: '{{ .Release.Name }}' -spec: - environment: '{{ .Values.globals.environment }}' - redirectUris: - - path: /audiobookshelf/auth/openid/callback - subdomain: '{{ .Values.subdomain }}' - matchingMode: strict - - path: /audiobookshelf/auth/openid/mobile-redirect - subdomain: '{{ .Values.subdomain }}' - matchingMode: strict diff --git a/apps/charts/audiobookshelf/templates/oidc.yaml b/apps/charts/audiobookshelf/templates/oidc.yaml new file mode 100644 index 0000000..a9e49c0 --- /dev/null +++ b/apps/charts/audiobookshelf/templates/oidc.yaml @@ -0,0 +1,15 @@ + +apiVersion: authentik.homelab.mortenolsen.pro/v1alpha1 +kind: AuthentikClient +metadata: + name: "{{ .Release.Name }}" + namespace: "{{ .Release.Namespace }}" +spec: + serverRef: + name: authentik + namespace: shared + name: "{{ .Release.Name }}" + redirectUris: + - "https://{{ .Values.subdomain }}.{{ .Values.globals.domain }}/audiobookshelf/auth/openid/callback" + - "https://{{ .Values.subdomain }}.{{ .Values.globals.domain }}/audiobookshelf/auth/openid/mobile-redirect" +