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" +