SHARE
TWEET

Untitled

a guest Apr 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top