@axa-fr/react-oidc 7.13.16 → 7.15.0-alpha.1286
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 +34 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -202,11 +202,41 @@ const configuration = {
|
|
|
202
202
|
onLogoutFromSameTab: Function, // Optional, can be set to override the default behavior, this function is triggered when a user is logged out from the same tab when session_monitor is active
|
|
203
203
|
token_renew_mode: String, // Optional, update tokens based on the selected token(s) lifetime: "access_token_or_id_token_invalid" (default), "access_token_invalid", "id_token_invalid"
|
|
204
204
|
logout_tokens_to_invalidate: Array<string>, // Optional tokens to invalidate during logout, default: ['access_token', 'refresh_token']
|
|
205
|
-
demonstrating_proof_of_possession: Boolean, // Optional, default is false, if true, the the Demonstrating Proof of Possession will be activated //https://www.rfc-editor.org/rfc/rfc9449.html#name-protected-resource-access
|
|
206
205
|
location: ILOidcLocation, // Optional, default is window.location, you can inject your own location object respecting the ILOidcLocation interface
|
|
207
|
-
|
|
206
|
+
demonstrating_proof_of_possession: Boolean, // Optional, default is false, if true, the the Demonstrating Proof of Possession will be activated //https://www.rfc-editor.org/rfc/rfc9449.html#name-protected-resource-access
|
|
207
|
+
demonstrating_proof_of_possession_configuration: DemonstratingProofOfPossessionConfiguration // Optional, more details bellow
|
|
208
|
+
},
|
|
208
209
|
};
|
|
209
210
|
|
|
211
|
+
demonstrating_proof_of_possession_configuration: DemonstratingProofOfPossessionConfiguration // Optional, more details bellow
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
interface DemonstratingProofOfPossessionConfiguration {
|
|
216
|
+
generateKeyAlgorithm: RsaHashedKeyGenParams | EcKeyGenParams,
|
|
217
|
+
digestAlgorithm: AlgorithmIdentifier,
|
|
218
|
+
importKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm,
|
|
219
|
+
signAlgorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
|
|
220
|
+
jwtHeaderAlgorithm: string
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// default value of demonstrating_proof_of_possession_configuration
|
|
224
|
+
const defaultDemonstratingProofOfPossessionConfiguration: DemonstratingProofOfPossessionConfiguration ={
|
|
225
|
+
importKeyAlgorithm: {
|
|
226
|
+
name: 'ECDSA',
|
|
227
|
+
namedCurve: 'P-256',
|
|
228
|
+
hash: {name: 'ES256'}
|
|
229
|
+
},
|
|
230
|
+
signAlgorithm: {name: 'ECDSA', hash: {name: 'SHA-256'}},
|
|
231
|
+
generateKeyAlgorithm: {
|
|
232
|
+
name: 'ECDSA',
|
|
233
|
+
namedCurve: 'P-256'
|
|
234
|
+
},
|
|
235
|
+
digestAlgorithm: { name: 'SHA-256' },
|
|
236
|
+
jwtHeaderAlgorithm : 'ES256'
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
210
240
|
```
|
|
211
241
|
|
|
212
242
|
## How to consume
|
|
@@ -590,6 +620,8 @@ More information about OIDC
|
|
|
590
620
|
|
|
591
621
|
- [French : Augmentez la sécurité et la simplicité de votre Système d’Information OpenID Connect](https://medium.com/just-tech-it-now/augmentez-la-s%C3%A9curit%C3%A9-et-la-simplicit%C3%A9-de-votre-syst%C3%A8me-dinformation-avec-oauth-2-0-cf0732d71284)
|
|
592
622
|
- [English : Increase the security and simplicity of your information system with openid connect](https://medium.com/just-tech-it-now/increase-the-security-and-simplicity-of-your-information-system-with-openid-connect-fa8c26b99d6d)
|
|
623
|
+
- [English: youtube OIDC](https://www.youtube.com/watch?v=frIJfavZkUE&list=PL8EMdIH6Mzxy2kHtsVOEWqNz-OaM_D_fB&index=1)
|
|
624
|
+
- [French: youtube OIDC](https://www.youtube.com/watch?v=H-mLMGzQ_y0&list=PL8EMdIH6Mzxy2kHtsVOEWqNz-OaM_D_fB&index=2)
|
|
593
625
|
|
|
594
626
|
## NextJS
|
|
595
627
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.15.0-alpha.1286",
|
|
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.15.0-alpha.1286",
|
|
44
|
+
"@axa-fr/oidc-client": "7.15.0-alpha.1286",
|
|
45
45
|
"base64-js": "1.5.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|