Redirects users back to the app home page after SSO logout instead of leaving them stranded on the Authentik end-session page.
14 lines
795 B
TypeScript
14 lines
795 B
TypeScript
import { WebStorageStateStore } from "oidc-client-ts";
|
|
|
|
export const oidcConfig = {
|
|
authority: "https://authentik.viktorbarzin.me/application/o/wrongmove/",
|
|
client_id: "5AJKRgcdgVm1OyApBzFkadDFfStW9a555zwv2MOe",
|
|
redirect_uri: import.meta.env.MODE === 'development' ? "https://localhost/callback" : "https://wrongmove.viktorbarzin.me/callback",
|
|
post_logout_redirect_uri: import.meta.env.MODE === 'development' ? "https://localhost/" : "https://wrongmove.viktorbarzin.me/",
|
|
userStore: new WebStorageStateStore({ store: window.localStorage }),
|
|
response_type: 'code', // PKCE flow (recommended for SPAs)
|
|
scope: 'openid profile email', // Requested scopes
|
|
automaticSilentRenew: true, // Renew tokens silently
|
|
filterProtocolClaims: true,
|
|
loadUserInfo: true,
|
|
};
|