@axa-fr/oidc-client 7.13.16 → 7.14.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 CHANGED
@@ -205,8 +205,37 @@ const configuration = {
205
205
  monitor_session: Boolean, // Add OpenID monitor session, default is false (more information https://openid.net/specs/openid-connect-session-1_0.html), if you need to set it to true consider https://infi.nl/nieuws/spa-necromancy/
206
206
  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"
207
207
  logout_tokens_to_invalidate: Array<string>, // Optional tokens to invalidate during logout, default: ['access_token', 'refresh_token']
208
+ location: ILOidcLocation, // Optional, default is window.location, you can inject your own location object respecting the ILOidcLocation interface
208
209
  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
210
+ demonstrating_proof_of_possession_configuration: DemonstratingProofOfPossessionConfiguration // Optional, more details bellow
209
211
  };
212
+
213
+
214
+ interface DemonstratingProofOfPossessionConfiguration {
215
+ generateKeyAlgorithm: RsaHashedKeyGenParams | EcKeyGenParams,
216
+ digestAlgorithm: AlgorithmIdentifier,
217
+ importKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm,
218
+ signAlgorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
219
+ jwtHeaderAlgorithm: string
220
+ };
221
+
222
+ // default value of demonstrating_proof_of_possession_configuration
223
+ const defaultDemonstratingProofOfPossessionConfiguration: DemonstratingProofOfPossessionConfiguration ={
224
+ importKeyAlgorithm: {
225
+ name: 'ECDSA',
226
+ namedCurve: 'P-256',
227
+ hash: {name: 'ES256'}
228
+ },
229
+ signAlgorithm: {name: 'ECDSA', hash: {name: 'SHA-256'}},
230
+ generateKeyAlgorithm: {
231
+ name: 'ECDSA',
232
+ namedCurve: 'P-256'
233
+ },
234
+ digestAlgorithm: { name: 'SHA-256' },
235
+ jwtHeaderAlgorithm : 'ES256'
236
+ };
237
+
238
+
210
239
  ```
211
240
 
212
241
  ## API
@@ -374,6 +403,8 @@ More information about OIDC
374
403
 
375
404
  - [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)
376
405
  - [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)
406
+ - [English: youtube OIDC](https://www.youtube.com/watch?v=frIJfavZkUE&list=PL8EMdIH6Mzxy2kHtsVOEWqNz-OaM_D_fB&index=1)
407
+ - [French: youtube OIDC](https://www.youtube.com/watch?v=H-mLMGzQ_y0&list=PL8EMdIH6Mzxy2kHtsVOEWqNz-OaM_D_fB&index=2)
377
408
 
378
409
  ## Hash route
379
410
 
@@ -1,4 +1,5 @@
1
1
  import { CheckSessionIFrame } from './checkSessionIFrame.js';
2
2
  import { OidcConfiguration } from './types.js';
3
- export declare const startCheckSessionAsync: (oidc: any, oidcDatabase: any, configuration: OidcConfiguration) => (checkSessionIFrameUri: any, clientId: any, sessionState: any, isSilentSignin?: boolean) => Promise<CheckSessionIFrame>;
3
+ import Oidc from "./oidc";
4
+ export declare const startCheckSessionAsync: (oidc: Oidc, oidcDatabase: any, configuration: OidcConfiguration) => (checkSessionIFrameUri: any, clientId: any, sessionState: any, isSilentSignin?: boolean) => Promise<CheckSessionIFrame>;
4
5
  //# sourceMappingURL=checkSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkSession.d.ts","sourceRoot":"","sources":["../src/checkSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,eAAO,MAAM,sBAAsB,SAAS,GAAG,gBAAe,GAAG,iBAAiB,iBAAiB,4HAsDlG,CAAC"}
1
+ {"version":3,"file":"checkSession.d.ts","sourceRoot":"","sources":["../src/checkSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAG1B,eAAO,MAAM,sBAAsB,SAAS,IAAI,gBAAe,GAAG,iBAAiB,iBAAiB,4HAsDnG,CAAC"}