@schemavaults/auth-common 0.10.9 → 0.10.10
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maximum lifetime of an OAuth2 authorization code.
|
|
3
|
+
*
|
|
4
|
+
* Per RFC 6749 §4.1.2, authorization codes MUST be single-use and short-lived;
|
|
5
|
+
* a maximum lifetime of 10 minutes is RECOMMENDED.
|
|
6
|
+
*
|
|
7
|
+
* This is distinct from {@link MAX_PKCE_CODE_VERIFIER_AGE}, which bounds how
|
|
8
|
+
* long a user may sit on the `/authorize` page before submitting. The
|
|
9
|
+
* authorization code age bounds how long the client application has to
|
|
10
|
+
* exchange a received authorization code for tokens at the token endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MAX_AUTHORIZATION_CODE_AGE: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maximum lifetime of an OAuth2 authorization code.
|
|
3
|
+
*
|
|
4
|
+
* Per RFC 6749 §4.1.2, authorization codes MUST be single-use and short-lived;
|
|
5
|
+
* a maximum lifetime of 10 minutes is RECOMMENDED.
|
|
6
|
+
*
|
|
7
|
+
* This is distinct from {@link MAX_PKCE_CODE_VERIFIER_AGE}, which bounds how
|
|
8
|
+
* long a user may sit on the `/authorize` page before submitting. The
|
|
9
|
+
* authorization code age bounds how long the client application has to
|
|
10
|
+
* exchange a received authorization code for tokens at the token endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export const MAX_AUTHORIZATION_CODE_AGE = 10 * 60 * 1000; // 10 minutes
|
|
13
|
+
//# sourceMappingURL=authorization_code_age.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization_code_age.js","sourceRoot":"","sources":["../../src/pkce/authorization_code_age.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAW,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa"}
|
package/dist/pkce/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export type * from './pkce';
|
|
|
3
3
|
export type { CodeChallenge, CodeChallengeWithDetails } from './code_challenge';
|
|
4
4
|
export type { CodeVerifier, CodeVerifierWithDetails } from './code_verifier';
|
|
5
5
|
export { MAX_PKCE_CODE_VERIFIER_AGE } from './code_verifier';
|
|
6
|
+
export { MAX_AUTHORIZATION_CODE_AGE } from './authorization_code_age';
|
|
6
7
|
export { isPkceChallengeExpired } from './is_pkce_challenge_expired';
|
package/dist/pkce/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PKCE_ProofKeyManager } from './pkce';
|
|
2
2
|
export { MAX_PKCE_CODE_VERIFIER_AGE } from './code_verifier';
|
|
3
|
+
export { MAX_AUTHORIZATION_CODE_AGE } from './authorization_code_age';
|
|
3
4
|
export { isPkceChallengeExpired } from './is_pkce_challenge_expired';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
package/dist/pkce/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pkce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pkce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/package.json
CHANGED