@faable/auth-sdk 2.5.55 → 2.5.57
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 +47 -0
- package/package.json +1 -1
- package/spec/openapi.json +46 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -1320,6 +1320,26 @@ export interface paths {
|
|
|
1320
1320
|
patch?: never;
|
|
1321
1321
|
trace?: never;
|
|
1322
1322
|
};
|
|
1323
|
+
"/oauth/link_ticket": {
|
|
1324
|
+
parameters: {
|
|
1325
|
+
query?: never;
|
|
1326
|
+
header?: never;
|
|
1327
|
+
path?: never;
|
|
1328
|
+
cookie?: never;
|
|
1329
|
+
};
|
|
1330
|
+
get?: never;
|
|
1331
|
+
put?: never;
|
|
1332
|
+
/**
|
|
1333
|
+
* Mint a link ticket
|
|
1334
|
+
* @description Trades the Bearer access token of a signed-in user for a single-use, short-lived ticket that lets `/authorize?link=true` establish the cookie session it links the new identity to. For Relying Parties that authenticated the user with a direct grant (e.g. passwordless OTP) and therefore hold no cookie session. Subject to the client’s `web_origins` allowlist like `/oauth/token`.
|
|
1335
|
+
*/
|
|
1336
|
+
post: operations["oauth/link_ticket"];
|
|
1337
|
+
delete?: never;
|
|
1338
|
+
options?: never;
|
|
1339
|
+
head?: never;
|
|
1340
|
+
patch?: never;
|
|
1341
|
+
trace?: never;
|
|
1342
|
+
};
|
|
1323
1343
|
"/oauth/token": {
|
|
1324
1344
|
parameters: {
|
|
1325
1345
|
query?: never;
|
|
@@ -9136,6 +9156,8 @@ export interface operations {
|
|
|
9136
9156
|
redirect_to?: string;
|
|
9137
9157
|
/** @description Link mode: attach the resulting provider identity to the ACTIVE session user instead of signing in or up. Requires a session; incompatible with prompt=login/consent. */
|
|
9138
9158
|
link?: boolean;
|
|
9159
|
+
/** @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. */
|
|
9160
|
+
link_ticket?: string;
|
|
9139
9161
|
client_id: string;
|
|
9140
9162
|
/** @description Deprecated. Use connection_id */
|
|
9141
9163
|
connection?: string;
|
|
@@ -9171,6 +9193,31 @@ export interface operations {
|
|
|
9171
9193
|
};
|
|
9172
9194
|
};
|
|
9173
9195
|
};
|
|
9196
|
+
"oauth/link_ticket": {
|
|
9197
|
+
parameters: {
|
|
9198
|
+
query?: never;
|
|
9199
|
+
header?: never;
|
|
9200
|
+
path?: never;
|
|
9201
|
+
cookie?: never;
|
|
9202
|
+
};
|
|
9203
|
+
requestBody?: never;
|
|
9204
|
+
responses: {
|
|
9205
|
+
/** @description Default Response */
|
|
9206
|
+
200: {
|
|
9207
|
+
headers: {
|
|
9208
|
+
[name: string]: unknown;
|
|
9209
|
+
};
|
|
9210
|
+
content: {
|
|
9211
|
+
"application/json": {
|
|
9212
|
+
/** @description Opaque single-use ticket. Pass it as `link_ticket` on `/authorize?link=true` within `expires_in` seconds. */
|
|
9213
|
+
link_ticket: string;
|
|
9214
|
+
/** @description Ticket lifetime in seconds. */
|
|
9215
|
+
expires_in: number;
|
|
9216
|
+
};
|
|
9217
|
+
};
|
|
9218
|
+
};
|
|
9219
|
+
};
|
|
9220
|
+
};
|
|
9174
9221
|
"oauth/tokenGet": {
|
|
9175
9222
|
parameters: {
|
|
9176
9223
|
query?: {
|
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": "1.
|
|
6
|
+
"version": "1.53.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -18871,6 +18871,15 @@
|
|
|
18871
18871
|
"required": false,
|
|
18872
18872
|
"description": "Link mode: attach the resulting provider identity to the ACTIVE session user instead of signing in or up. Requires a session; incompatible with prompt=login/consent."
|
|
18873
18873
|
},
|
|
18874
|
+
{
|
|
18875
|
+
"schema": {
|
|
18876
|
+
"type": "string"
|
|
18877
|
+
},
|
|
18878
|
+
"in": "query",
|
|
18879
|
+
"name": "link_ticket",
|
|
18880
|
+
"required": false,
|
|
18881
|
+
"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."
|
|
18882
|
+
},
|
|
18874
18883
|
{
|
|
18875
18884
|
"schema": {
|
|
18876
18885
|
"type": "string"
|
|
@@ -18976,6 +18985,42 @@
|
|
|
18976
18985
|
}
|
|
18977
18986
|
}
|
|
18978
18987
|
},
|
|
18988
|
+
"/oauth/link_ticket": {
|
|
18989
|
+
"post": {
|
|
18990
|
+
"operationId": "oauth/link_ticket",
|
|
18991
|
+
"summary": "Mint a link ticket",
|
|
18992
|
+
"tags": [
|
|
18993
|
+
"oauth"
|
|
18994
|
+
],
|
|
18995
|
+
"description": "Trades the Bearer access token of a signed-in user for a single-use, short-lived ticket that lets `/authorize?link=true` establish the cookie session it links the new identity to. For Relying Parties that authenticated the user with a direct grant (e.g. passwordless OTP) and therefore hold no cookie session. Subject to the client’s `web_origins` allowlist like `/oauth/token`.",
|
|
18996
|
+
"responses": {
|
|
18997
|
+
"200": {
|
|
18998
|
+
"description": "Default Response",
|
|
18999
|
+
"content": {
|
|
19000
|
+
"application/json": {
|
|
19001
|
+
"schema": {
|
|
19002
|
+
"type": "object",
|
|
19003
|
+
"required": [
|
|
19004
|
+
"link_ticket",
|
|
19005
|
+
"expires_in"
|
|
19006
|
+
],
|
|
19007
|
+
"properties": {
|
|
19008
|
+
"link_ticket": {
|
|
19009
|
+
"type": "string",
|
|
19010
|
+
"description": "Opaque single-use ticket. Pass it as `link_ticket` on `/authorize?link=true` within `expires_in` seconds."
|
|
19011
|
+
},
|
|
19012
|
+
"expires_in": {
|
|
19013
|
+
"type": "number",
|
|
19014
|
+
"description": "Ticket lifetime in seconds."
|
|
19015
|
+
}
|
|
19016
|
+
}
|
|
19017
|
+
}
|
|
19018
|
+
}
|
|
19019
|
+
}
|
|
19020
|
+
}
|
|
19021
|
+
}
|
|
19022
|
+
}
|
|
19023
|
+
},
|
|
18979
19024
|
"/oauth/token": {
|
|
18980
19025
|
"get": {
|
|
18981
19026
|
"operationId": "oauth/tokenGet",
|