@axa-fr/react-oidc 7.18.4 → 7.19.0
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 +23 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -98,6 +98,28 @@ trustedDomains.config_show_access_token = {
|
|
|
98
98
|
// setAccessTokenToNavigateRequests: true, // default value is true
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
+
// DPoP (Demonstrating Proof of Possession) will be activated for the following domains
|
|
102
|
+
trustedDomains.config_with_dpop = {
|
|
103
|
+
domains: ["https://demo.duendesoftware.com"],
|
|
104
|
+
demonstratingProofOfPossession: true
|
|
105
|
+
// Optional, more details bellow
|
|
106
|
+
/*demonstratingProofOfPossessionConfiguration: {
|
|
107
|
+
importKeyAlgorithm: {
|
|
108
|
+
name: 'ECDSA',
|
|
109
|
+
namedCurve: 'P-256',
|
|
110
|
+
hash: {name: 'ES256'}
|
|
111
|
+
},
|
|
112
|
+
signAlgorithm: {name: 'ECDSA', hash: {name: 'SHA-256'}},
|
|
113
|
+
generateKeyAlgorithm: {
|
|
114
|
+
name: 'ECDSA',
|
|
115
|
+
namedCurve: 'P-256'
|
|
116
|
+
},
|
|
117
|
+
digestAlgorithm: { name: 'SHA-256' },
|
|
118
|
+
jwtHeaderAlgorithm : 'ES256'
|
|
119
|
+
}*/
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
101
123
|
```
|
|
102
124
|
|
|
103
125
|
## Run The Demo
|
|
@@ -142,7 +164,7 @@ const configuration = {
|
|
|
142
164
|
authority: "https://demo.duendesoftware.com",
|
|
143
165
|
service_worker_relative_url: "/OidcServiceWorker.js", // just comment that line to disable service worker mode
|
|
144
166
|
service_worker_only: false,
|
|
145
|
-
demonstrating_proof_of_possession: false,
|
|
167
|
+
demonstrating_proof_of_possession: false,
|
|
146
168
|
};
|
|
147
169
|
|
|
148
170
|
const App = () => (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0",
|
|
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.19.0",
|
|
44
|
+
"@axa-fr/oidc-client": "7.19.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^17.0.0 || ^18.0.0"
|