@faable/auth-sdk 2.9.49 → 2.9.51
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 +12 -0
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +37 -2
package/dist/api/types.d.ts
CHANGED
|
@@ -6378,6 +6378,10 @@ export interface components {
|
|
|
6378
6378
|
grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
|
|
6379
6379
|
/** @description The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience. */
|
|
6380
6380
|
include_roles_in_id_token?: boolean;
|
|
6381
|
+
/** @description OIDC Back-Channel Logout: the URL Faable Auth POSTs a `logout_token` to when a session this client took part in ends (sign-out, revocation, password change). */
|
|
6382
|
+
backchannel_logout_uri?: string;
|
|
6383
|
+
/** @description The client needs `sid` in the logout_token (and in its id_tokens) to know which session ended. */
|
|
6384
|
+
backchannel_logout_session_required?: boolean;
|
|
6381
6385
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Only scopes your own token holds can be granted. */
|
|
6382
6386
|
management_scopes?: string[];
|
|
6383
6387
|
/** @description Add Metadata */
|
|
@@ -14170,6 +14174,10 @@ export interface operations {
|
|
|
14170
14174
|
grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
|
|
14171
14175
|
/** @description The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience. */
|
|
14172
14176
|
include_roles_in_id_token?: boolean;
|
|
14177
|
+
/** @description OIDC Back-Channel Logout: the URL Faable Auth POSTs a `logout_token` to when a session this client took part in ends (sign-out, revocation, password change). */
|
|
14178
|
+
backchannel_logout_uri?: string;
|
|
14179
|
+
/** @description The client needs `sid` in the logout_token (and in its id_tokens) to know which session ended. */
|
|
14180
|
+
backchannel_logout_session_required?: boolean;
|
|
14173
14181
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Only scopes your own token holds can be granted. */
|
|
14174
14182
|
management_scopes?: string[];
|
|
14175
14183
|
/** @description Add Metadata */
|
|
@@ -35079,6 +35087,8 @@ export interface operations {
|
|
|
35079
35087
|
code_challenge_method: "S256";
|
|
35080
35088
|
/** @description The site's base URL. The client's callbacks must contain `<site_url>/wp-login.php?faable-auth=callback`. */
|
|
35081
35089
|
site_url: string;
|
|
35090
|
+
/** @description Roles for this site only: the site maps the tenant roles `<role_prefix>:administrator`, `<role_prefix>:editor`, … and ignores unprefixed ones. Omitted: the site uses the roles shared by every site of the tenant (`administrator`, `editor`, …). */
|
|
35091
|
+
role_prefix?: string;
|
|
35082
35092
|
};
|
|
35083
35093
|
};
|
|
35084
35094
|
};
|
|
@@ -35219,6 +35229,8 @@ export interface operations {
|
|
|
35219
35229
|
client_secret: string;
|
|
35220
35230
|
project_id: string | null;
|
|
35221
35231
|
account_id: string;
|
|
35232
|
+
/** @description The role prefix chosen in the dashboard (roles for this site only), or null for roles shared with the other sites of the tenant. */
|
|
35233
|
+
role_prefix: string | null;
|
|
35222
35234
|
};
|
|
35223
35235
|
};
|
|
35224
35236
|
};
|
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.51";
|
|
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 = "242de89";
|
|
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.123.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -2578,6 +2578,15 @@
|
|
|
2578
2578
|
"type": "boolean",
|
|
2579
2579
|
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
2580
2580
|
},
|
|
2581
|
+
"backchannel_logout_uri": {
|
|
2582
|
+
"type": "string",
|
|
2583
|
+
"maxLength": 2048,
|
|
2584
|
+
"description": "OIDC Back-Channel Logout: the URL Faable Auth POSTs a `logout_token` to when a session this client took part in ends (sign-out, revocation, password change)."
|
|
2585
|
+
},
|
|
2586
|
+
"backchannel_logout_session_required": {
|
|
2587
|
+
"type": "boolean",
|
|
2588
|
+
"description": "The client needs `sid` in the logout_token (and in its id_tokens) to know which session ended."
|
|
2589
|
+
},
|
|
2581
2590
|
"management_scopes": {
|
|
2582
2591
|
"type": "array",
|
|
2583
2592
|
"items": {
|
|
@@ -24297,6 +24306,15 @@
|
|
|
24297
24306
|
"type": "boolean",
|
|
24298
24307
|
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
24299
24308
|
},
|
|
24309
|
+
"backchannel_logout_uri": {
|
|
24310
|
+
"type": "string",
|
|
24311
|
+
"maxLength": 2048,
|
|
24312
|
+
"description": "OIDC Back-Channel Logout: the URL Faable Auth POSTs a `logout_token` to when a session this client took part in ends (sign-out, revocation, password change)."
|
|
24313
|
+
},
|
|
24314
|
+
"backchannel_logout_session_required": {
|
|
24315
|
+
"type": "boolean",
|
|
24316
|
+
"description": "The client needs `sid` in the logout_token (and in its id_tokens) to know which session ended."
|
|
24317
|
+
},
|
|
24300
24318
|
"management_scopes": {
|
|
24301
24319
|
"type": "array",
|
|
24302
24320
|
"items": {
|
|
@@ -72958,6 +72976,11 @@
|
|
|
72958
72976
|
"minLength": 1,
|
|
72959
72977
|
"maxLength": 2048,
|
|
72960
72978
|
"description": "The site's base URL. The client's callbacks must contain `<site_url>/wp-login.php?faable-auth=callback`."
|
|
72979
|
+
},
|
|
72980
|
+
"role_prefix": {
|
|
72981
|
+
"type": "string",
|
|
72982
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
|
|
72983
|
+
"description": "Roles for this site only: the site maps the tenant roles `<role_prefix>:administrator`, `<role_prefix>:editor`, … and ignores unprefixed ones. Omitted: the site uses the roles shared by every site of the tenant (`administrator`, `editor`, …)."
|
|
72961
72984
|
}
|
|
72962
72985
|
},
|
|
72963
72986
|
"additionalProperties": false
|
|
@@ -73202,7 +73225,8 @@
|
|
|
73202
73225
|
"client_id",
|
|
73203
73226
|
"client_secret",
|
|
73204
73227
|
"project_id",
|
|
73205
|
-
"account_id"
|
|
73228
|
+
"account_id",
|
|
73229
|
+
"role_prefix"
|
|
73206
73230
|
],
|
|
73207
73231
|
"properties": {
|
|
73208
73232
|
"auth_domain": {
|
|
@@ -73227,6 +73251,17 @@
|
|
|
73227
73251
|
},
|
|
73228
73252
|
"account_id": {
|
|
73229
73253
|
"type": "string"
|
|
73254
|
+
},
|
|
73255
|
+
"role_prefix": {
|
|
73256
|
+
"anyOf": [
|
|
73257
|
+
{
|
|
73258
|
+
"type": "string"
|
|
73259
|
+
},
|
|
73260
|
+
{
|
|
73261
|
+
"type": "null"
|
|
73262
|
+
}
|
|
73263
|
+
],
|
|
73264
|
+
"description": "The role prefix chosen in the dashboard (roles for this site only), or null for roles shared with the other sites of the tenant."
|
|
73230
73265
|
}
|
|
73231
73266
|
}
|
|
73232
73267
|
}
|