@axa-fr/react-oidc 7.13.16-beta.1276 → 7.13.16
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 +2 -34
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -202,41 +202,11 @@ 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
|
-
location: ILOidcLocation, // Optional, default is window.location, you can inject your own location object respecting the ILOidcLocation interface
|
|
206
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
|
|
207
|
-
|
|
208
|
-
},
|
|
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'
|
|
206
|
+
location: ILOidcLocation, // Optional, default is window.location, you can inject your own location object respecting the ILOidcLocation interface
|
|
207
|
+
}.isRequired,
|
|
237
208
|
};
|
|
238
209
|
|
|
239
|
-
|
|
240
210
|
```
|
|
241
211
|
|
|
242
212
|
## How to consume
|
|
@@ -620,8 +590,6 @@ More information about OIDC
|
|
|
620
590
|
|
|
621
591
|
- [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)
|
|
622
592
|
- [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)
|
|
625
593
|
|
|
626
594
|
## NextJS
|
|
627
595
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "7.13.16
|
|
3
|
+
"version": "7.13.16",
|
|
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.13.16
|
|
44
|
-
"@axa-fr/oidc-client": "7.13.16
|
|
43
|
+
"@axa-fr/oidc-client-service-worker": "7.13.16",
|
|
44
|
+
"@axa-fr/oidc-client": "7.13.16",
|
|
45
45
|
"base64-js": "1.5.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|