diff --git a/changelog/unreleased/bugfix-respect-post-logout-url b/changelog/unreleased/bugfix-respect-post-logout-url new file mode 100644 index 00000000000..35b8ddc1bf6 --- /dev/null +++ b/changelog/unreleased/bugfix-respect-post-logout-url @@ -0,0 +1,6 @@ +Bugfix: Respect post logout url + +We've fixed a bug where setting the `post_logout_redirect_url` in the oidc config had no effect. + +https://github.com/owncloud/web/pull/11817 +https://github.com/owncloud/web/issues/11816 diff --git a/packages/web-pkg/src/composables/piniaStores/config/types.ts b/packages/web-pkg/src/composables/piniaStores/config/types.ts index 9147608bca6..06b24242319 100644 --- a/packages/web-pkg/src/composables/piniaStores/config/types.ts +++ b/packages/web-pkg/src/composables/piniaStores/config/types.ts @@ -18,15 +18,18 @@ const OAuth2ConfigSchema = z.object({ export type OAuth2Config = z.infer -const OpenIdConnectConfigSchema = z.object({ - authority: z.string().optional(), - client_id: z.string().optional(), - client_secret: z.string().optional(), - dynamic: z.string().optional(), - metadata_url: z.string().optional(), - response_type: z.string().optional(), - scope: z.string().optional() -}) +const OpenIdConnectConfigSchema = z + .object({ + authority: z.string().optional(), + client_id: z.string().optional(), + client_secret: z.string().optional(), + dynamic: z.string().optional(), + metadata_url: z.string().optional(), + post_logout_redirect_uri: z.string().optional(), + response_type: z.string().optional(), + scope: z.string().optional() + }) + .passthrough() export type OpenIdConnectConfig = z.infer