@idp.global/interfaces 3.0.0 → 4.0.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/changelog.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-06-21 - 4.0.0
4
+
5
+ ### Breaking Changes
6
+
7
+ - require PKCE parameters for OIDC authorization code flow (oidc)
8
+ - Make code_challenge and code_challenge_method mandatory on authorization requests
9
+ - Make code_verifier mandatory on authorization code token requests
10
+
3
11
  ## 2026-06-21 - 3.0.0
4
12
 
5
13
  ### Breaking Changes
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '3.0.0',
6
+ version: '4.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -218,8 +218,8 @@ export interface IAuthorizationRequest {
218
218
  response_type: 'code';
219
219
  scope: string;
220
220
  state: string;
221
- code_challenge?: string;
222
- code_challenge_method?: 'S256';
221
+ code_challenge: string;
222
+ code_challenge_method: 'S256';
223
223
  nonce?: string;
224
224
  prompt?: 'none' | 'login' | 'consent';
225
225
  }
@@ -232,7 +232,7 @@ export interface ITokenRequestAuthCode {
232
232
  redirect_uri: string;
233
233
  client_id: string;
234
234
  client_secret?: string;
235
- code_verifier?: string;
235
+ code_verifier: string;
236
236
  }
237
237
  /**
238
238
  * Token request for refresh_token grant
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idp.global/interfaces",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@idp.global/interfaces',
6
- version: '3.0.0',
6
+ version: '4.0.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the idp.global ecosystem.'
8
8
  }
package/ts/data/oidc.ts CHANGED
@@ -248,8 +248,8 @@ export interface IAuthorizationRequest {
248
248
  response_type: 'code';
249
249
  scope: string;
250
250
  state: string;
251
- code_challenge?: string;
252
- code_challenge_method?: 'S256';
251
+ code_challenge: string;
252
+ code_challenge_method: 'S256';
253
253
  nonce?: string;
254
254
  prompt?: 'none' | 'login' | 'consent';
255
255
  }
@@ -263,7 +263,7 @@ export interface ITokenRequestAuthCode {
263
263
  redirect_uri: string;
264
264
  client_id: string;
265
265
  client_secret?: string;
266
- code_verifier?: string;
266
+ code_verifier: string;
267
267
  }
268
268
 
269
269
  /**