Skip to content

v4.1.0

Choose a tag to compare

@github-actions github-actions released this 07 Jul 13:40
· 113 commits to refs/heads/master since this release
b7288cc

Changes

  • @axa-fr/react-oidc update to v6.x @DCosti (#108) which includes:

  • For HTTP calls, a ServiceWorker is used to automatically inject the token.

  • We still inject the token manually for WS calls.

  • When we use one of the hooks exported by the library, we have to provide a name to load the configuration. We created the function getOidcConfigName which will provide a default configuration name (config_show_access_token) or in case the project is multitenancy it will provide a tenant specific configuration name (tenant id or the default name).

  • Two files were added inside the public folder:

    1. OidcServiceWorker.js which is generated when running npm install
    2. OidcTrustedDomains.js which contains the trusted domains configuration for ServiceWorker in order to inject the token and the flag for accessing the token for WS calls (showAccessToken)
  • OidcTrustedDomains.js is going to be modified at runtime by the setOidcDomains.js script file that is going to populate the file with the necessary environment variables and for production we added a new script in setenv.js file.