@faable/auth-sdk 2.9.7 → 2.9.9
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/dist/api/types.d.ts +11 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +19 -2
package/dist/api/types.d.ts
CHANGED
|
@@ -8585,6 +8585,10 @@ export interface components {
|
|
|
8585
8585
|
/** @description An opaque value the applications adds to the initial request that the authorization server includes when redirecting the back to the application. This value must be used by the application to prevent CSRF attacks. */
|
|
8586
8586
|
state?: string;
|
|
8587
8587
|
response_type?: string;
|
|
8588
|
+
/** @description PKCE challenge, without a `state` only. */
|
|
8589
|
+
code_challenge?: string;
|
|
8590
|
+
/** @description Only `S256` is supported. */
|
|
8591
|
+
code_challenge_method?: string;
|
|
8588
8592
|
/** @description Same-origin path to return the user to after authentication, instead of the OAuth client redirect. Used by first-party interactive flows (e.g. device-code confirm). Non same-origin values are ignored. */
|
|
8589
8593
|
redirect_to?: string;
|
|
8590
8594
|
/** @description The "Remember me on this device" checkbox. Honoured only when the tenant shows one (`login_methods.remember_me: "optional"`): `true` keeps the session for `remember_me_days`, `false` ends it when the browser closes. */
|
|
@@ -37316,6 +37320,10 @@ export interface operations {
|
|
|
37316
37320
|
/** @description An opaque value the applications adds to the initial request that the authorization server includes when redirecting the back to the application. This value must be used by the application to prevent CSRF attacks. */
|
|
37317
37321
|
state?: string;
|
|
37318
37322
|
response_type?: string;
|
|
37323
|
+
/** @description PKCE challenge, without a `state` only. */
|
|
37324
|
+
code_challenge?: string;
|
|
37325
|
+
/** @description Only `S256` is supported. */
|
|
37326
|
+
code_challenge_method?: string;
|
|
37319
37327
|
/** @description Same-origin path to return the user to after authentication, instead of the OAuth client redirect. Used by first-party interactive flows (e.g. device-code confirm). Non same-origin values are ignored. */
|
|
37320
37328
|
redirect_to?: string;
|
|
37321
37329
|
/** @description The "Remember me on this device" checkbox. Honoured only when the tenant shows one (`login_methods.remember_me: "optional"`): `true` keeps the session for `remember_me_days`, `false` ends it when the browser closes. */
|
|
@@ -37363,6 +37371,8 @@ export interface operations {
|
|
|
37363
37371
|
*
|
|
37364
37372
|
* `invalid_credentials` — The email/username or password is incorrect.
|
|
37365
37373
|
*
|
|
37374
|
+
* `invalid_request` — A required OAuth parameter is missing or two of them are incompatible. `message` says which.
|
|
37375
|
+
*
|
|
37366
37376
|
* `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
37367
37377
|
*/
|
|
37368
37378
|
400: {
|
|
@@ -37372,7 +37382,7 @@ export interface operations {
|
|
|
37372
37382
|
content: {
|
|
37373
37383
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
37374
37384
|
/** @enum {string} */
|
|
37375
|
-
error_code?: "invalid_code" | "invalid_connection" | "invalid_credentials" | "validation_error";
|
|
37385
|
+
error_code?: "invalid_code" | "invalid_connection" | "invalid_credentials" | "invalid_request" | "validation_error";
|
|
37376
37386
|
};
|
|
37377
37387
|
};
|
|
37378
37388
|
};
|
package/dist/version.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
// login pages could not import the SDK at all. Same pattern as auth-js.
|
|
10
10
|
//
|
|
11
11
|
// The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
|
|
12
|
-
export const version = "2.9.
|
|
12
|
+
export const version = "2.9.9";
|
|
13
13
|
// Short git SHA of the released commit. The version dates a build; this names
|
|
14
14
|
// the exact tree, so a canonical log line or an audit entry leads straight to
|
|
15
15
|
// `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
|
|
16
16
|
// link) cannot be mistaken for a real commit — auth only records values that
|
|
17
17
|
// look like a SHA, and this one never will.
|
|
18
|
-
export const commit = "
|
|
18
|
+
export const commit = "dba1c7a";
|
|
19
19
|
// What this SDK writes in `x-faable-client`. Exported for a consumer that
|
|
20
20
|
// builds a strategy on its own (outside `FaableAuthApi`) and still wants the
|
|
21
21
|
// token request attributed — a bare `authClientCredentials` stamps only what
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@faablecloud/auth",
|
|
5
5
|
"description": "Auth Platform made by Faable. Manage Users and Roles",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.97.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -9619,6 +9619,14 @@
|
|
|
9619
9619
|
"response_type": {
|
|
9620
9620
|
"type": "string"
|
|
9621
9621
|
},
|
|
9622
|
+
"code_challenge": {
|
|
9623
|
+
"type": "string",
|
|
9624
|
+
"description": "PKCE challenge, without a `state` only."
|
|
9625
|
+
},
|
|
9626
|
+
"code_challenge_method": {
|
|
9627
|
+
"type": "string",
|
|
9628
|
+
"description": "Only `S256` is supported."
|
|
9629
|
+
},
|
|
9622
9630
|
"redirect_to": {
|
|
9623
9631
|
"type": "string",
|
|
9624
9632
|
"description": "Same-origin path to return the user to after authentication, instead of the OAuth client redirect. Used by first-party interactive flows (e.g. device-code confirm). Non same-origin values are ignored."
|
|
@@ -80400,6 +80408,14 @@
|
|
|
80400
80408
|
"response_type": {
|
|
80401
80409
|
"type": "string"
|
|
80402
80410
|
},
|
|
80411
|
+
"code_challenge": {
|
|
80412
|
+
"type": "string",
|
|
80413
|
+
"description": "PKCE challenge, without a `state` only."
|
|
80414
|
+
},
|
|
80415
|
+
"code_challenge_method": {
|
|
80416
|
+
"type": "string",
|
|
80417
|
+
"description": "Only `S256` is supported."
|
|
80418
|
+
},
|
|
80403
80419
|
"redirect_to": {
|
|
80404
80420
|
"type": "string",
|
|
80405
80421
|
"description": "Same-origin path to return the user to after authentication, instead of the OAuth client redirect. Used by first-party interactive flows (e.g. device-code confirm). Non same-origin values are ignored."
|
|
@@ -80475,7 +80491,7 @@
|
|
|
80475
80491
|
"description": "Default Response"
|
|
80476
80492
|
},
|
|
80477
80493
|
"400": {
|
|
80478
|
-
"description": "`invalid_code` — The verification code is wrong, expired or already used.\n\n`invalid_connection` — The connection does not exist, is disabled, or is not of the type this flow needs.\n\n`invalid_credentials` — The email/username or password is incorrect.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
80494
|
+
"description": "`invalid_code` — The verification code is wrong, expired or already used.\n\n`invalid_connection` — The connection does not exist, is disabled, or is not of the type this flow needs.\n\n`invalid_credentials` — The email/username or password is incorrect.\n\n`invalid_request` — A required OAuth parameter is missing or two of them are incompatible. `message` says which.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
80479
80495
|
"content": {
|
|
80480
80496
|
"application/json": {
|
|
80481
80497
|
"schema": {
|
|
@@ -80492,6 +80508,7 @@
|
|
|
80492
80508
|
"invalid_code",
|
|
80493
80509
|
"invalid_connection",
|
|
80494
80510
|
"invalid_credentials",
|
|
80511
|
+
"invalid_request",
|
|
80495
80512
|
"validation_error"
|
|
80496
80513
|
]
|
|
80497
80514
|
}
|