authhero 8.15.0 → 8.16.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 +105 -105
- package/dist/authhero.d.ts +186 -185
- package/dist/authhero.mjs +4659 -4645
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/index.d.ts +176 -176
- package/dist/types/routes/auth-api/index.d.ts +4 -4
- package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
- package/dist/types/routes/auth-api/passwordless.d.ts +2 -2
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +3 -3
- package/dist/types/routes/management-api/clients.d.ts +6 -6
- package/dist/types/routes/management-api/connections.d.ts +16 -16
- package/dist/types/routes/management-api/forms.d.ts +126 -126
- package/dist/types/routes/management-api/index.d.ts +162 -162
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenants.d.ts +28 -28
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +6 -6
- package/dist/types/routes/universal-login/continue.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/identifier.d.ts +4 -4
- package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +8 -8
- package/dist/types/routes/universal-login/u2-index.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-routes.d.ts +2 -2
- package/dist/types/types/AuthHeroConfig.d.ts +9 -8
- package/dist/types/utils/username-password-provider.d.ts +19 -5
- package/package.json +5 -5
|
@@ -6,15 +6,15 @@ import { EnrichedClient } from "../helpers/client";
|
|
|
6
6
|
* TRANSITIONAL helpers for the auth2 → auth0 provider migration.
|
|
7
7
|
*
|
|
8
8
|
* Historically every native database user has been stored with
|
|
9
|
-
* `provider = "auth2"` and `user_id = "auth2|<id>"`.
|
|
10
|
-
* `"auth0"` provider value
|
|
11
|
-
* `init({ usernamePasswordProvider })`
|
|
12
|
-
*
|
|
9
|
+
* `provider = "auth2"` and `user_id = "auth2|<id>"`. New rows are now
|
|
10
|
+
* written with the `"auth0"` provider value everywhere; the
|
|
11
|
+
* `init({ usernamePasswordProvider })` resolver only exists to pin a
|
|
12
|
+
* tenant back onto `"auth2"` during a staged cutover.
|
|
13
13
|
*
|
|
14
14
|
* Two surfaces are exposed:
|
|
15
15
|
*
|
|
16
16
|
* - {@link resolveUsernamePasswordProvider} — used at WRITE sites to pick
|
|
17
|
-
* the value to stamp on a new row. Defaults to `"
|
|
17
|
+
* the value to stamp on a new row. Defaults to `"auth0"`.
|
|
18
18
|
* - {@link isUsernamePasswordProvider} / {@link getUsernamePasswordUser} /
|
|
19
19
|
* {@link getPrimaryUsernamePasswordUser} — used at READ sites to match
|
|
20
20
|
* existing rows under EITHER value, so a tenant can have a mix of
|
|
@@ -25,7 +25,21 @@ import { EnrichedClient } from "../helpers/client";
|
|
|
25
25
|
*/
|
|
26
26
|
declare const LEGACY_PROVIDER = "auth2";
|
|
27
27
|
declare const TARGET_PROVIDER = "auth0";
|
|
28
|
+
/**
|
|
29
|
+
* True when a connection's `strategy` field marks it as a native database
|
|
30
|
+
* (username/password) connection. Legacy tenants persist the provider
|
|
31
|
+
* literal ("auth2") in the strategy field instead of the canonical Auth0
|
|
32
|
+
* strategy name, and either provider literal must never leak into new
|
|
33
|
+
* user rows as the provider — write sites go through
|
|
34
|
+
* {@link resolveUsernamePasswordProvider} instead.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isDatabaseConnectionStrategy(strategy: string | undefined | null): boolean;
|
|
28
37
|
export type UsernamePasswordProviderValue = typeof LEGACY_PROVIDER | typeof TARGET_PROVIDER;
|
|
38
|
+
/**
|
|
39
|
+
* Both native database provider values, legacy first — for read sites
|
|
40
|
+
* that need to enumerate rather than predicate-match.
|
|
41
|
+
*/
|
|
42
|
+
export declare const USERNAME_PASSWORD_PROVIDERS: readonly UsernamePasswordProviderValue[];
|
|
29
43
|
export declare function resolveUsernamePasswordProvider(env: Bindings, tenant_id: string): Promise<UsernamePasswordProviderValue>;
|
|
30
44
|
export declare function isUsernamePasswordProvider(provider: string | undefined | null): boolean;
|
|
31
45
|
interface DualReadParams {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "8.
|
|
14
|
+
"version": "8.16.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": "11.13.
|
|
67
|
-
"@authhero/widget": "0.34.
|
|
66
|
+
"@authhero/kysely-adapter": "11.13.1",
|
|
67
|
+
"@authhero/widget": "0.34.7"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@peculiar/x509": "^1.14.0",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"qrcode": "^1.5.4",
|
|
83
83
|
"sanitize-html": "^2.17.4",
|
|
84
84
|
"xstate": "^5.31.1",
|
|
85
|
-
"@authhero/adapter-interfaces": "3.
|
|
86
|
-
"@authhero/proxy": "0.8.
|
|
85
|
+
"@authhero/adapter-interfaces": "3.7.0",
|
|
86
|
+
"@authhero/proxy": "0.8.3",
|
|
87
87
|
"@authhero/saml": "0.4.2"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|