authhero 4.112.0 → 4.113.0
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/assets/u/widget/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-11674140.entry.js +1 -0
- package/dist/authhero.cjs +136 -123
- package/dist/authhero.d.ts +41 -12
- package/dist/authhero.mjs +15203 -14721
- package/dist/stats.html +1 -1
- package/package.json +4 -4
- package/dist/assets/u/widget/p-f56bfac1.entry.js +0 -1
package/dist/authhero.d.ts
CHANGED
|
@@ -50140,6 +50140,7 @@ export declare const Strategy: {
|
|
|
50140
50140
|
readonly SAMLP: "samlp";
|
|
50141
50141
|
readonly WAAD: "waad";
|
|
50142
50142
|
readonly ADFS: "adfs";
|
|
50143
|
+
readonly AUTH0: "auth0";
|
|
50143
50144
|
};
|
|
50144
50145
|
export declare const StrategyType: {
|
|
50145
50146
|
readonly DATABASE: "database";
|
|
@@ -54173,6 +54174,21 @@ export type UserLinkingModeResolver = (params: {
|
|
|
54173
54174
|
client_id?: string;
|
|
54174
54175
|
}) => UserLinkingMode | Promise<UserLinkingMode>;
|
|
54175
54176
|
export type UserLinkingModeOption = UserLinkingMode | UserLinkingModeResolver;
|
|
54177
|
+
/**
|
|
54178
|
+
* Resolver for the per-tenant username/password provider value.
|
|
54179
|
+
*
|
|
54180
|
+
* The native database provider has historically been written as `"auth2"`.
|
|
54181
|
+
* Returning `"auth0"` for selected tenants lets you migrate them onto the
|
|
54182
|
+
* `"auth0"` provider value (matching what the legacy Auth0 import format
|
|
54183
|
+
* used) one tenant at a time. Reads always accept both values, so existing
|
|
54184
|
+
* `auth2|*` rows keep resolving during and after the cutover.
|
|
54185
|
+
*
|
|
54186
|
+
* TRANSITIONAL: this resolver and the dual-read fallback can be removed
|
|
54187
|
+
* once every tenant has been migrated to a single value.
|
|
54188
|
+
*/
|
|
54189
|
+
export type UsernamePasswordProviderResolver = (params: {
|
|
54190
|
+
tenant_id: string;
|
|
54191
|
+
}) => "auth0" | "auth2" | Promise<"auth0" | "auth2">;
|
|
54176
54192
|
export interface AuthHeroConfig {
|
|
54177
54193
|
dataAdapter: DataAdapters;
|
|
54178
54194
|
/**
|
|
@@ -54376,6 +54392,18 @@ export interface AuthHeroConfig {
|
|
|
54376
54392
|
* @default "builtin"
|
|
54377
54393
|
*/
|
|
54378
54394
|
userLinkingMode?: UserLinkingModeOption;
|
|
54395
|
+
/**
|
|
54396
|
+
* Per-tenant override for the username/password provider value used on
|
|
54397
|
+
* NEW user rows. Returning `"auth0"` for a tenant migrates new signups,
|
|
54398
|
+
* password resets, etc. onto the `auth0|*` user_id format. Existing
|
|
54399
|
+
* `auth2|*` rows keep working — reads accept either value.
|
|
54400
|
+
*
|
|
54401
|
+
* Omit to keep the legacy `"auth2"` value for every tenant.
|
|
54402
|
+
*
|
|
54403
|
+
* TRANSITIONAL: this hook and the dual-read fallback in the password
|
|
54404
|
+
* flows can be removed once all tenants have been backfilled.
|
|
54405
|
+
*/
|
|
54406
|
+
usernamePasswordProvider?: UsernamePasswordProviderResolver;
|
|
54379
54407
|
}
|
|
54380
54408
|
export type UserInfo = {
|
|
54381
54409
|
sub: string;
|
|
@@ -54437,6 +54465,7 @@ export type Bindings = {
|
|
|
54437
54465
|
webhookInvoker?: WebhookInvoker;
|
|
54438
54466
|
outbox?: OutboxConfig;
|
|
54439
54467
|
userLinkingMode?: UserLinkingModeOption;
|
|
54468
|
+
usernamePasswordProvider?: UsernamePasswordProviderResolver;
|
|
54440
54469
|
/**
|
|
54441
54470
|
* Allow outbound fetches (jwks_uri, request_uri) to localhost / private IP
|
|
54442
54471
|
* ranges and over plain http. Intended for tests and local development;
|
|
@@ -66250,13 +66279,13 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
66250
66279
|
};
|
|
66251
66280
|
};
|
|
66252
66281
|
output: {
|
|
66253
|
-
name
|
|
66254
|
-
|
|
66255
|
-
credentials: {
|
|
66282
|
+
name?: string | undefined;
|
|
66283
|
+
credentials?: {
|
|
66256
66284
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
66257
|
-
};
|
|
66258
|
-
|
|
66259
|
-
|
|
66285
|
+
} | undefined;
|
|
66286
|
+
settings?: {} | undefined;
|
|
66287
|
+
enabled?: boolean | undefined;
|
|
66288
|
+
default_from_address?: string | undefined;
|
|
66260
66289
|
};
|
|
66261
66290
|
outputFormat: "json";
|
|
66262
66291
|
status: 200;
|
|
@@ -66368,13 +66397,13 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
66368
66397
|
};
|
|
66369
66398
|
};
|
|
66370
66399
|
output: {
|
|
66371
|
-
name
|
|
66372
|
-
|
|
66373
|
-
credentials: {
|
|
66400
|
+
name?: string | undefined;
|
|
66401
|
+
credentials?: {
|
|
66374
66402
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
66375
|
-
};
|
|
66376
|
-
|
|
66377
|
-
|
|
66403
|
+
} | undefined;
|
|
66404
|
+
settings?: {} | undefined;
|
|
66405
|
+
enabled?: boolean | undefined;
|
|
66406
|
+
default_from_address?: string | undefined;
|
|
66378
66407
|
};
|
|
66379
66408
|
outputFormat: "json";
|
|
66380
66409
|
status: 200;
|