Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { createUserManager } from 'redux-oidc';
- const userManagerConfig = {
- client_id: 'webconf-web-ui',
- redirect_uri: `${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}/callback`,
- response_type: 'token id_token',
- scope: 'openid profile webconf',
- authority: 'http://localhost:5100',
- // silent_redirect_uri: `${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}/silent_renew.html`,
- // silent_redirect_uri: `${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}`,
- automaticSilentRenew: false,
- filterProtocolClaims: true,
- loadUserInfo: true
- };
- const userManager = createUserManager(userManagerConfig);
- export default userManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement