authhero 9.36.0 → 9.37.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 +144 -141
- package/dist/authhero.d.ts +462 -271
- package/dist/authhero.mjs +18253 -16777
- package/dist/{mfa-B044FRjD.mjs → mfa-BpHxTir1.mjs} +22 -22
- package/dist/{mfa-DPwn1ajo.js → mfa-DuNbh_YF.js} +1 -1
- package/dist/mfa-attempts-D5U1FCSY.js +275 -0
- package/dist/{mfa-attempts-DGOLb2oh.mjs → mfa-attempts-DDgCBTDW.mjs} +5048 -4965
- package/dist/{passkey-enrollment-BDboqoaP.js → passkey-enrollment-D6ZZmelw.js} +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/email-verification.d.ts +1 -1
- package/dist/types/generated/locale-types.d.ts +87 -0
- package/dist/types/helpers/anchor-client.d.ts +16 -0
- package/dist/types/helpers/database-connection-scope.d.ts +48 -18
- package/dist/types/helpers/dcr/audience-policy.d.ts +13 -0
- package/dist/types/helpers/dcr/client-registration.d.ts +81 -0
- package/dist/types/helpers/dcr/constraint-enforcement.d.ts +1 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +18 -1
- package/dist/types/helpers/dcr/mint-iat.d.ts +4 -1
- package/dist/types/helpers/dcr/mint-token.d.ts +4 -0
- package/dist/types/helpers/dcr/presets.d.ts +34 -0
- package/dist/types/helpers/dcr/uri-policy.d.ts +34 -0
- package/dist/types/helpers/password-connection.d.ts +3 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/self-service-tickets.d.ts +34 -0
- package/dist/types/helpers/users.d.ts +17 -2
- package/dist/types/index.d.ts +402 -212
- package/dist/types/routes/auth-api/authenticate.d.ts +1 -1
- package/dist/types/routes/auth-api/dbconnections.d.ts +2 -2
- package/dist/types/routes/auth-api/device.d.ts +8 -8
- package/dist/types/routes/auth-api/index.d.ts +36 -21
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- package/dist/types/routes/auth-api/register/index.d.ts +15 -0
- package/dist/types/routes/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/client-registration-tokens.d.ts +149 -0
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/forms.d.ts +144 -144
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/index.d.ts +329 -184
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- 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 +1 -1
- package/dist/types/routes/management-api/rollouts.d.ts +6 -6
- package/dist/types/routes/management-api/self-service-profiles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +7 -7
- package/dist/types/routes/management-api/users.d.ts +3 -3
- package/dist/types/routes/universal-login/common.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- package/dist/types/routes/universal-login/screens/connect-authz.d.ts +9 -0
- package/dist/types/routes/universal-login/screens/self-service-app.d.ts +46 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +35 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +35 -5
- package/dist/types/state-machines/login-session.d.ts +19 -1
- package/dist/types/types/Bindings.d.ts +2 -0
- package/package.json +6 -6
- package/dist/mfa-attempts-BiU_pMOV.js +0 -275
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Developer app setup page (#1776), served at /u2/self-service/app.
|
|
3
|
+
*
|
|
4
|
+
* An outside developer opens an invite link (an Initial Access Token minted
|
|
5
|
+
* from an app-type preset) to register an app, or an edit link (a
|
|
6
|
+
* Registration Access Token for one client) to update it. The landing route
|
|
7
|
+
* in u2-routes.tsx verifies the link and starts a login session carrying
|
|
8
|
+
* `state_data.self_service`; this screen re-checks the token on every request,
|
|
9
|
+
* so revoking a link also stops an open page.
|
|
10
|
+
*
|
|
11
|
+
* Registration and updates go through the same code as RFC 7591/7592
|
|
12
|
+
* (helpers/dcr/client-registration.ts), so the page enforces exactly what the
|
|
13
|
+
* API enforces.
|
|
14
|
+
*/
|
|
15
|
+
import { type ClientRegistrationToken } from "@authhero/adapter-interfaces";
|
|
16
|
+
import type { ScreenContext, ScreenDefinition, ScreenResult } from "./types";
|
|
17
|
+
export declare const SELF_SERVICE_APP_SCREEN = "self-service-app";
|
|
18
|
+
type Kind = "app_create" | "app_edit";
|
|
19
|
+
export interface SelfServiceState {
|
|
20
|
+
kind: Kind;
|
|
21
|
+
token_id: string;
|
|
22
|
+
/** Set once a create link has registered its app. */
|
|
23
|
+
completed_client_id?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function readSelfServiceState(stateDataJson: string | undefined): SelfServiceState | null;
|
|
26
|
+
/** Which link a token is, or null when it can't open the setup page. */
|
|
27
|
+
export declare function ticketKind(token: ClientRegistrationToken): Kind | null;
|
|
28
|
+
/** Whether the link is still usable: not revoked, expired or used up. */
|
|
29
|
+
export declare function isTicketActive(token: ClientRegistrationToken): boolean;
|
|
30
|
+
/** The page shown for an unknown, expired, revoked or used link. */
|
|
31
|
+
export declare function invalidTicketScreen(context: ScreenContext): ScreenResult;
|
|
32
|
+
export interface FormValues {
|
|
33
|
+
client_name: string;
|
|
34
|
+
redirect_uris: string[];
|
|
35
|
+
post_logout_redirect_uris: string[];
|
|
36
|
+
web_origins: string[];
|
|
37
|
+
logo_uri: string;
|
|
38
|
+
client_uri: string;
|
|
39
|
+
policy_uri: string;
|
|
40
|
+
tos_uri: string;
|
|
41
|
+
contact: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function valuesFromForm(data: Record<string, unknown>): FormValues;
|
|
44
|
+
export declare function selfServiceAppScreen(context: ScreenContext): Promise<ScreenResult>;
|
|
45
|
+
export declare const selfServiceAppScreenDefinition: ScreenDefinition;
|
|
46
|
+
export {};
|
|
@@ -160,12 +160,42 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
160
160
|
status: 302;
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
+
} & {
|
|
164
|
+
"/self-service/app": {
|
|
165
|
+
$get: {
|
|
166
|
+
input: {
|
|
167
|
+
query: {
|
|
168
|
+
ticket?: string | undefined;
|
|
169
|
+
state?: string | undefined;
|
|
170
|
+
error?: string | undefined;
|
|
171
|
+
error_description?: string | undefined;
|
|
172
|
+
ui_locales?: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
output: Response;
|
|
176
|
+
outputFormat: "json";
|
|
177
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
178
|
+
} | {
|
|
179
|
+
input: {
|
|
180
|
+
query: {
|
|
181
|
+
ticket?: string | undefined;
|
|
182
|
+
state?: string | undefined;
|
|
183
|
+
error?: string | undefined;
|
|
184
|
+
error_description?: string | undefined;
|
|
185
|
+
ui_locales?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
output: {};
|
|
189
|
+
outputFormat: string;
|
|
190
|
+
status: 302;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
163
193
|
} & {
|
|
164
194
|
"/:screen{.+}": {
|
|
165
195
|
$get: {
|
|
166
196
|
input: {
|
|
167
197
|
param: {
|
|
168
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "
|
|
198
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
|
|
169
199
|
};
|
|
170
200
|
} & {
|
|
171
201
|
query: {
|
|
@@ -181,7 +211,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
181
211
|
} | {
|
|
182
212
|
input: {
|
|
183
213
|
param: {
|
|
184
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "
|
|
214
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
|
|
185
215
|
};
|
|
186
216
|
} & {
|
|
187
217
|
query: {
|
|
@@ -197,7 +227,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
197
227
|
} | {
|
|
198
228
|
input: {
|
|
199
229
|
param: {
|
|
200
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "
|
|
230
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
|
|
201
231
|
};
|
|
202
232
|
} & {
|
|
203
233
|
query: {
|
|
@@ -217,7 +247,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
217
247
|
$post: {
|
|
218
248
|
input: {
|
|
219
249
|
param: {
|
|
220
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "
|
|
250
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
|
|
221
251
|
};
|
|
222
252
|
} & {
|
|
223
253
|
query: {
|
|
@@ -235,7 +265,7 @@ export default function createU2App(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
235
265
|
} | {
|
|
236
266
|
input: {
|
|
237
267
|
param: {
|
|
238
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "
|
|
268
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
|
|
239
269
|
};
|
|
240
270
|
} & {
|
|
241
271
|
query: {
|
|
@@ -165,12 +165,42 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
165
165
|
status: 302;
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
|
+
} & {
|
|
169
|
+
"/self-service/app": {
|
|
170
|
+
$get: {
|
|
171
|
+
input: {
|
|
172
|
+
query: {
|
|
173
|
+
ticket?: string | undefined;
|
|
174
|
+
state?: string | undefined;
|
|
175
|
+
error?: string | undefined;
|
|
176
|
+
error_description?: string | undefined;
|
|
177
|
+
ui_locales?: string | undefined;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
output: Response;
|
|
181
|
+
outputFormat: "json";
|
|
182
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
183
|
+
} | {
|
|
184
|
+
input: {
|
|
185
|
+
query: {
|
|
186
|
+
ticket?: string | undefined;
|
|
187
|
+
state?: string | undefined;
|
|
188
|
+
error?: string | undefined;
|
|
189
|
+
error_description?: string | undefined;
|
|
190
|
+
ui_locales?: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
output: {};
|
|
194
|
+
outputFormat: string;
|
|
195
|
+
status: 302;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
168
198
|
} & {
|
|
169
199
|
"/:screen{.+}": {
|
|
170
200
|
$get: {
|
|
171
201
|
input: {
|
|
172
202
|
param: {
|
|
173
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "
|
|
203
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
|
|
174
204
|
};
|
|
175
205
|
} & {
|
|
176
206
|
query: {
|
|
@@ -186,7 +216,7 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
186
216
|
} | {
|
|
187
217
|
input: {
|
|
188
218
|
param: {
|
|
189
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "
|
|
219
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
|
|
190
220
|
};
|
|
191
221
|
} & {
|
|
192
222
|
query: {
|
|
@@ -202,7 +232,7 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
202
232
|
} | {
|
|
203
233
|
input: {
|
|
204
234
|
param: {
|
|
205
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "
|
|
235
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "account" | "enter-password" | "try-connection-result" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation" | "device/complete";
|
|
206
236
|
};
|
|
207
237
|
} & {
|
|
208
238
|
query: {
|
|
@@ -222,7 +252,7 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
222
252
|
$post: {
|
|
223
253
|
input: {
|
|
224
254
|
param: {
|
|
225
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "
|
|
255
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
|
|
226
256
|
};
|
|
227
257
|
} & {
|
|
228
258
|
query: {
|
|
@@ -240,7 +270,7 @@ export declare const u2Routes: OpenAPIHono<{
|
|
|
240
270
|
} | {
|
|
241
271
|
input: {
|
|
242
272
|
param: {
|
|
243
|
-
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "
|
|
273
|
+
screen: "signup" | "login" | "impersonate" | "reset-password" | "consent" | "enter-password" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "login/email-verification" | "login/email-verification-sent" | "reset-password/code" | "reset-password/request" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant" | "self-service/app" | "device/code" | "device/confirmation";
|
|
244
274
|
};
|
|
245
275
|
} & {
|
|
246
276
|
query: {
|
|
@@ -45,6 +45,16 @@ export interface LoginSessionData {
|
|
|
45
45
|
inviter_name?: string;
|
|
46
46
|
roles?: string[];
|
|
47
47
|
connect?: Record<string, unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Developer app setup page (#1776): which link opened the page (the
|
|
50
|
+
* registration token row id) and, once a create link registered its app,
|
|
51
|
+
* the new client. See routes/universal-login/screens/self-service-app.ts.
|
|
52
|
+
*/
|
|
53
|
+
self_service?: {
|
|
54
|
+
kind: "app_create" | "app_edit";
|
|
55
|
+
token_id: string;
|
|
56
|
+
completed_client_id?: string;
|
|
57
|
+
};
|
|
48
58
|
deviceFlow?: {
|
|
49
59
|
deviceCodeHash?: string;
|
|
50
60
|
userCode?: string;
|
|
@@ -53,6 +63,14 @@ export interface LoginSessionData {
|
|
|
53
63
|
try_connection_result?: unknown;
|
|
54
64
|
session_cookie?: SessionCookieDiagnostics;
|
|
55
65
|
session_transfer?: SessionTransferCarrierState;
|
|
66
|
+
/**
|
|
67
|
+
* The database connection /co/authenticate checked a password in. Written
|
|
68
|
+
* only by its password branch, on the session it creates, and read by
|
|
69
|
+
* ticketAuth. Kept apart from `authParams.connection`, which /authorize and
|
|
70
|
+
* other routes set from the request, so a login ticket can only be redeemed
|
|
71
|
+
* where a password was actually checked.
|
|
72
|
+
*/
|
|
73
|
+
ticket_connection?: string;
|
|
56
74
|
}
|
|
57
75
|
/** The on-disk JSON shape stays flat for compatibility with existing sessions. */
|
|
58
76
|
export declare function readLoginSessionData(raw?: string | null): LoginSessionData;
|
|
@@ -234,7 +252,7 @@ export declare const loginSessionMachine: import("xstate").StateMachine<LoginSes
|
|
|
234
252
|
}, {
|
|
235
253
|
type: "passwordResetRequested";
|
|
236
254
|
params: unknown;
|
|
237
|
-
}, never, "pending" | "
|
|
255
|
+
}, never, "pending" | "authenticated" | "failed" | "expired" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation" | "completed", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
238
256
|
id: "loginSession";
|
|
239
257
|
states: {
|
|
240
258
|
readonly pending: {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SigningCertificateAuthority } from "../helpers/signing-certificate-authority";
|
|
2
2
|
import { ActionCodeGenerator, CodeExecutor, DataAdapters } from "@authhero/adapter-interfaces";
|
|
3
3
|
import type { SamlSigner } from "@authhero/saml/core";
|
|
4
|
+
import type { ManagementAudienceResolver } from "../middlewares/authentication";
|
|
4
5
|
import { Hooks } from "./Hooks";
|
|
5
6
|
import { ActionExecutionLogCapture, EntityHooksConfig, McpConfig, OutboxConfig, SigningKeyModeOption, RolloutControllerBinding, TenantOperationExecutorBinding, UserLinkingModeOption, UsernamePasswordProviderResolver, WebhookInvoker } from "./AuthHeroConfig";
|
|
6
7
|
import { StrategyHandler } from "../strategies";
|
|
@@ -48,6 +49,7 @@ export type Bindings = {
|
|
|
48
49
|
usersImportMaxBytes?: number;
|
|
49
50
|
usersImportMaxConcurrentJobs?: number;
|
|
50
51
|
unsafeAllowAzpCustomClaim?: boolean;
|
|
52
|
+
additionalManagementAudiences?: ManagementAudienceResolver;
|
|
51
53
|
outbox?: OutboxConfig;
|
|
52
54
|
userLinkingMode?: UserLinkingModeOption;
|
|
53
55
|
usernamePasswordProvider?: UsernamePasswordProviderResolver;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/sesamyab/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "9.
|
|
14
|
+
"version": "9.37.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vite": "^8.0.14",
|
|
64
64
|
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
"vitest": "^4.1.7",
|
|
66
|
-
"@authhero/kysely-adapter": "12.
|
|
67
|
-
"@authhero/widget": "0.41.
|
|
66
|
+
"@authhero/kysely-adapter": "12.23.0",
|
|
67
|
+
"@authhero/widget": "0.41.16"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@peculiar/x509": "^1.14.3",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"qrcode": "^1.5.4",
|
|
82
82
|
"sanitize-html": "^2.17.4",
|
|
83
83
|
"xstate": "^5.31.1",
|
|
84
|
-
"@authhero/adapter-interfaces": "4.
|
|
85
|
-
"@authhero/proxy": "0.11.
|
|
86
|
-
"@authhero/saml": "0.6.
|
|
84
|
+
"@authhero/adapter-interfaces": "4.32.0",
|
|
85
|
+
"@authhero/proxy": "0.11.19",
|
|
86
|
+
"@authhero/saml": "0.6.12"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@authhero/widget": ">=0.38.9",
|