@faable/auth-sdk 2.7.9 → 2.7.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.
- package/dist/api/types.d.ts +17 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +37 -2
package/dist/api/types.d.ts
CHANGED
|
@@ -23936,6 +23936,8 @@ export interface operations {
|
|
|
23936
23936
|
link?: boolean;
|
|
23937
23937
|
/** @description Preview token from `POST /loginflow/:id/preview-token`. This login runs the DRAFT of that flow, for this browser only; nothing is published. Invalid or expired tokens are ignored. */
|
|
23938
23938
|
flow_preview?: string;
|
|
23939
|
+
/** @description Resume the login transaction the hosted screen has parked, instead of starting a new one. Used by the screen itself when the person picks a method: everything that belongs to the Relying Party — `code_challenge`, `state`, `redirect_uri`, `nonce`, `scope`, `audience` — is taken from the parked transaction and CANNOT be overridden by the query. Only `connection` is read from the caller. */
|
|
23940
|
+
resume_state?: string;
|
|
23939
23941
|
/** @description Single-use ticket from `POST /oauth/link_ticket`. With `link=true`, establishes the cookie session for the ticket’s user before linking — for Relying Parties that hold tokens but no cookie session (direct grants such as passwordless OTP). Invalid or expired tickets are ignored. */
|
|
23940
23942
|
link_ticket?: string;
|
|
23941
23943
|
client_id: string;
|
|
@@ -23976,6 +23978,8 @@ export interface operations {
|
|
|
23976
23978
|
*
|
|
23977
23979
|
* `invalid_redirect_uri` — The redirect URI is not registered for the client.
|
|
23978
23980
|
*
|
|
23981
|
+
* `invalid_state` — The `state` is missing, expired, or does not describe a resumable step.
|
|
23982
|
+
*
|
|
23979
23983
|
* `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
23980
23984
|
*/
|
|
23981
23985
|
400: {
|
|
@@ -23985,7 +23989,19 @@ export interface operations {
|
|
|
23985
23989
|
content: {
|
|
23986
23990
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
23987
23991
|
/** @enum {string} */
|
|
23988
|
-
error_code?: "invalid_client" | "invalid_redirect_uri" | "validation_error";
|
|
23992
|
+
error_code?: "invalid_client" | "invalid_redirect_uri" | "invalid_state" | "validation_error";
|
|
23993
|
+
};
|
|
23994
|
+
};
|
|
23995
|
+
};
|
|
23996
|
+
/** @description `state_mismatch` — The `state` belongs to another account, session, client or ceremony. */
|
|
23997
|
+
401: {
|
|
23998
|
+
headers: {
|
|
23999
|
+
[name: string]: unknown;
|
|
24000
|
+
};
|
|
24001
|
+
content: {
|
|
24002
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
24003
|
+
/** @enum {string} */
|
|
24004
|
+
error_code?: "state_mismatch";
|
|
23989
24005
|
};
|
|
23990
24006
|
};
|
|
23991
24007
|
};
|
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.7.
|
|
12
|
+
export const version = "2.7.10";
|
|
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 = "7e3c429";
|
|
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.25.
|
|
6
|
+
"version": "2.25.5",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -52824,6 +52824,15 @@
|
|
|
52824
52824
|
"required": false,
|
|
52825
52825
|
"description": "Preview token from `POST /loginflow/:id/preview-token`. This login runs the DRAFT of that flow, for this browser only; nothing is published. Invalid or expired tokens are ignored."
|
|
52826
52826
|
},
|
|
52827
|
+
{
|
|
52828
|
+
"schema": {
|
|
52829
|
+
"type": "string"
|
|
52830
|
+
},
|
|
52831
|
+
"in": "query",
|
|
52832
|
+
"name": "resume_state",
|
|
52833
|
+
"required": false,
|
|
52834
|
+
"description": "Resume the login transaction the hosted screen has parked, instead of starting a new one. Used by the screen itself when the person picks a method: everything that belongs to the Relying Party — `code_challenge`, `state`, `redirect_uri`, `nonce`, `scope`, `audience` — is taken from the parked transaction and CANNOT be overridden by the query. Only `connection` is read from the caller."
|
|
52835
|
+
},
|
|
52827
52836
|
{
|
|
52828
52837
|
"schema": {
|
|
52829
52838
|
"type": "string"
|
|
@@ -52936,7 +52945,7 @@
|
|
|
52936
52945
|
"description": "Default Response"
|
|
52937
52946
|
},
|
|
52938
52947
|
"400": {
|
|
52939
|
-
"description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`invalid_redirect_uri` — The redirect URI is not registered for the client.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
52948
|
+
"description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`invalid_redirect_uri` — The redirect URI is not registered for the client.\n\n`invalid_state` — The `state` is missing, expired, or does not describe a resumable step.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
52940
52949
|
"content": {
|
|
52941
52950
|
"application/json": {
|
|
52942
52951
|
"schema": {
|
|
@@ -52952,6 +52961,7 @@
|
|
|
52952
52961
|
"enum": [
|
|
52953
52962
|
"invalid_client",
|
|
52954
52963
|
"invalid_redirect_uri",
|
|
52964
|
+
"invalid_state",
|
|
52955
52965
|
"validation_error"
|
|
52956
52966
|
]
|
|
52957
52967
|
}
|
|
@@ -52962,6 +52972,31 @@
|
|
|
52962
52972
|
}
|
|
52963
52973
|
}
|
|
52964
52974
|
},
|
|
52975
|
+
"401": {
|
|
52976
|
+
"description": "`state_mismatch` — The `state` belongs to another account, session, client or ceremony.",
|
|
52977
|
+
"content": {
|
|
52978
|
+
"application/json": {
|
|
52979
|
+
"schema": {
|
|
52980
|
+
"allOf": [
|
|
52981
|
+
{
|
|
52982
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
52983
|
+
},
|
|
52984
|
+
{
|
|
52985
|
+
"type": "object",
|
|
52986
|
+
"properties": {
|
|
52987
|
+
"error_code": {
|
|
52988
|
+
"type": "string",
|
|
52989
|
+
"enum": [
|
|
52990
|
+
"state_mismatch"
|
|
52991
|
+
]
|
|
52992
|
+
}
|
|
52993
|
+
}
|
|
52994
|
+
}
|
|
52995
|
+
]
|
|
52996
|
+
}
|
|
52997
|
+
}
|
|
52998
|
+
}
|
|
52999
|
+
},
|
|
52965
53000
|
"403": {
|
|
52966
53001
|
"description": "`origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins.",
|
|
52967
53002
|
"content": {
|