authhero 8.22.0 → 8.23.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/index.esm.js +1 -1
- package/dist/authhero.cjs +142 -142
- package/dist/authhero.d.ts +242 -127
- package/dist/authhero.mjs +20674 -15903
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +12 -4
- package/dist/types/helpers/backchannel-logout.d.ts +19 -0
- package/dist/types/helpers/client.d.ts +10 -1
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/index.d.ts +232 -126
- package/dist/types/routes/auth-api/index.d.ts +24 -20
- package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/auth-api/well-known.d.ts +4 -0
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +68 -16
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/index.d.ts +179 -77
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +3 -3
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +50 -0
- package/dist/types/routes/management-api/tenants.d.ts +5 -5
- package/dist/types/routes/management-api/themes.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +24 -8
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/types/IdToken.d.ts +2 -2
- package/dist/types/utils/crypto.d.ts +3 -0
- package/dist/types/utils/jwt.d.ts +29 -0
- package/dist/types/utils/request-origin.d.ts +6 -0
- package/dist/types/utils/totp.d.ts +10 -0
- package/dist/types/variables.d.ts +8 -0
- package/package.json +6 -7
|
@@ -448,7 +448,15 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
448
448
|
allowed_clients?: string[] | undefined;
|
|
449
449
|
allowed_logout_urls?: string[] | undefined;
|
|
450
450
|
session_transfer?: Record<string, any> | undefined;
|
|
451
|
-
oidc_logout?:
|
|
451
|
+
oidc_logout?: {
|
|
452
|
+
[x: string]: unknown;
|
|
453
|
+
backchannel_logout_urls?: string[] | undefined;
|
|
454
|
+
backchannel_logout_initiators?: {
|
|
455
|
+
[x: string]: unknown;
|
|
456
|
+
mode?: "custom" | "all" | undefined;
|
|
457
|
+
selected_initiators?: string[] | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
} | undefined;
|
|
452
460
|
grant_types?: string[] | undefined;
|
|
453
461
|
jwt_configuration?: Record<string, any> | undefined;
|
|
454
462
|
signing_keys?: Record<string, any>[] | undefined;
|
|
@@ -458,7 +466,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
458
466
|
custom_login_page_preview?: string | undefined;
|
|
459
467
|
form_template?: string | undefined;
|
|
460
468
|
addons?: Record<string, any> | undefined;
|
|
461
|
-
token_endpoint_auth_method?: "none" | "
|
|
469
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
462
470
|
client_metadata?: Record<string, string> | undefined;
|
|
463
471
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
464
472
|
mobile?: Record<string, any> | undefined;
|
|
@@ -541,8 +549,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
541
549
|
} | undefined;
|
|
542
550
|
authenticated_at?: string | undefined;
|
|
543
551
|
};
|
|
544
|
-
connectionType: "
|
|
545
|
-
authConnection: "
|
|
552
|
+
connectionType: "email" | "username" | "sms";
|
|
553
|
+
authConnection: "email" | "username" | "sms";
|
|
546
554
|
session_id: string | undefined;
|
|
547
555
|
authParams: {
|
|
548
556
|
client_id: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { Session } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Bindings, Variables } from "../types";
|
|
4
|
+
type BackchannelSession = Pick<Session, "id" | "user_id" | "clients">;
|
|
5
|
+
/**
|
|
6
|
+
* Notify every RP that participated in `session` and registered
|
|
7
|
+
* `oidc_logout.backchannel_logout_urls` that the session has ended, by
|
|
8
|
+
* POSTing a signed logout token (§2.5) to each registered URL.
|
|
9
|
+
*
|
|
10
|
+
* Delivery is best-effort and runs in the background (`waitUntil`): a dead RP
|
|
11
|
+
* endpoint must never block or fail the logout that triggered it. Call this
|
|
12
|
+
* AFTER the session revocation has committed, so an RP that reacts to the
|
|
13
|
+
* token by hitting the OP observes the session as already gone.
|
|
14
|
+
*/
|
|
15
|
+
export declare function sendBackchannelLogout(ctx: Context<{
|
|
16
|
+
Bindings: Bindings;
|
|
17
|
+
Variables: Variables;
|
|
18
|
+
}>, tenant_id: string, session: BackchannelSession): void;
|
|
19
|
+
export {};
|
|
@@ -53,7 +53,16 @@ export declare const enrichedClientSchema: z.ZodObject<{
|
|
|
53
53
|
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
54
54
|
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
55
55
|
session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
56
|
-
oidc_logout: z.ZodOptional<z.ZodDefault<z.
|
|
56
|
+
oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
57
|
+
backchannel_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
backchannel_logout_initiators: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
custom: "custom";
|
|
61
|
+
all: "all";
|
|
62
|
+
}>>;
|
|
63
|
+
selected_initiators: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
|
+
}, z.core.$loose>>>;
|
|
57
66
|
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
58
67
|
jwt_configuration: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
59
68
|
signing_keys: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
@@ -24,10 +24,10 @@ export declare const dcrRequestSchema: z.ZodObject<{
|
|
|
24
24
|
response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
token_endpoint_auth_method: z.ZodOptional<z.ZodEnum<{
|
|
26
26
|
none: "none";
|
|
27
|
+
private_key_jwt: "private_key_jwt";
|
|
27
28
|
client_secret_post: "client_secret_post";
|
|
28
29
|
client_secret_basic: "client_secret_basic";
|
|
29
30
|
client_secret_jwt: "client_secret_jwt";
|
|
30
|
-
private_key_jwt: "private_key_jwt";
|
|
31
31
|
}>>;
|
|
32
32
|
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
33
33
|
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|