feat: add OIDC config for Authentik

This commit is contained in:
2001-01-01 00:00:00 +00:00
parent 2e55c53c13
commit a44f133fa9

13
src/auth/config.ts Normal file
View File

@@ -0,0 +1,13 @@
import { WebStorageStateStore } from 'oidc-client-ts';
export const oidcConfig = {
authority: 'https://auth.descomplicar.pt/application/o/dashboard-descomplicar/',
client_id: 'OKRSM2FZeSxJDhoV9e17dGRU1L1NEE1JBdnPVWTO',
redirect_uri: window.location.origin + '/callback',
post_logout_redirect_uri: window.location.origin,
scope: 'openid profile email',
userStore: new WebStorageStateStore({ store: window.localStorage }),
onSigninCallback: () => {
window.history.replaceState({}, document.title, window.location.pathname);
},
};