Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. import { createUserManager } from 'redux-oidc';
  2.  
  3. const userManagerConfig = {
  4. client_id: 'webconf-web-ui',
  5. redirect_uri: `${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}/callback`,
  6. response_type: 'token id_token',
  7. scope: 'openid profile webconf',
  8. authority: 'http://localhost:5100',
  9. // silent_redirect_uri: `${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}/silent_renew.html`,
  10. // silent_redirect_uri: `${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}`,
  11. automaticSilentRenew: false,
  12. filterProtocolClaims: true,
  13. loadUserInfo: true
  14. };
  15.  
  16. const userManager = createUserManager(userManagerConfig);
  17.  
  18. export default userManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement