feat: add OIDC config for Authentik
This commit is contained in:
13
src/auth/config.ts
Normal file
13
src/auth/config.ts
Normal 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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user