@axa-fr/react-oidc 7.2.1 → 7.3.0-alpha.1020
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ We provide a wrapper **@axa-fr/react-oidc** for **React** (compatible next.js) a
|
|
|
12
12
|
- Try the pure javascript demo at https://icy-glacier-004ab4303.2.azurestaticapps.net/
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
15
|
-
<img src="https://
|
|
15
|
+
<img src="https://raw.githubusercontent.com/AxaFrance/oidc-client/main/docs/img/introduction.gif"
|
|
16
16
|
alt="Sample React Oicd"
|
|
17
17
|
/>
|
|
18
18
|
</p>
|
|
@@ -92,7 +92,9 @@ const trustedDomains = {
|
|
|
92
92
|
trustedDomains.config_show_access_token = {
|
|
93
93
|
oidcDomains :["https://demo.duendesoftware.com"],
|
|
94
94
|
accessTokenDomains : ["https://www.myapi.com/users"],
|
|
95
|
-
showAccessToken: true
|
|
95
|
+
showAccessToken: true,
|
|
96
|
+
// convertAllRequestsToCorsExceptNavigate: false, // default value is false
|
|
97
|
+
// setAccessTokenToNavigateRequests: true, // default value is true
|
|
96
98
|
};
|
|
97
99
|
|
|
98
100
|
```
|
|
@@ -185,7 +187,6 @@ const configuration = {
|
|
|
185
187
|
service_worker_relative_url: String,
|
|
186
188
|
service_worker_only: Boolean, // default false
|
|
187
189
|
service_worker_update_require_callback: (registration:any, stopKeepAlive:Function) => Promise<void>, // callback called when service worker need to be updated, you can take the control of the update process
|
|
188
|
-
service_worker_convert_all_requests_to_cors: Boolean, // force all requests that service worker upgrades to have 'cors' mode. This allows setting an authentication token on requests initiated by HTML parsing (e.g., img tags, download links, etc.).
|
|
189
190
|
extras: StringMap | undefined, // ex: {'prompt': 'consent', 'access_type': 'offline'} list of key/value that is sent to the OIDC server (more info: https://github.com/openid/AppAuth-JS)
|
|
190
191
|
token_request_extras: StringMap | undefined, // ex: {'prompt': 'consent', 'access_type': 'offline'} list of key/value that is sent to the OIDC server during token request (more info: https://github.com/openid/AppAuth-JS)
|
|
191
192
|
withCustomHistory: Function, // Override history modification, return an instance with replaceState(url, stateHistory) implemented (like History.replaceState())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-alpha.1020",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"lint": "eslint src"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@axa-fr/oidc-client-service-worker": "7.
|
|
44
|
-
"@axa-fr/oidc-client": "7.
|
|
43
|
+
"@axa-fr/oidc-client-service-worker": "7.3.0-alpha.1020",
|
|
44
|
+
"@axa-fr/oidc-client": "7.3.0-alpha.1020",
|
|
45
45
|
"base64-js": "1.5.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|