@absolutejs/auth 0.54.9 → 0.55.1
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/README.md +26 -5
- package/dist/agents/config.d.ts +16 -0
- package/dist/agents/idJag.d.ts +49 -0
- package/dist/agents/inMemoryStores.d.ts +2 -1
- package/dist/agents/index.d.ts +5 -2
- package/dist/agents/index.js +1427 -95
- package/dist/agents/index.js.map +12 -8
- package/dist/agents/postgresStores.d.ts +280 -1
- package/dist/agents/registration.d.ts +162 -0
- package/dist/agents/registrationClient.d.ts +50 -0
- package/dist/agents/routes.d.ts +144 -1
- package/dist/agents/types.d.ts +59 -0
- package/dist/apikeys/routes.d.ts +1 -1
- package/dist/authInstance.d.ts +12 -0
- package/dist/authorization/protectPermission.d.ts +2 -2
- package/dist/cli/migrate.js +57 -8
- package/dist/cli/migrate.js.map +4 -4
- package/dist/index.d.ts +14 -131
- package/dist/index.js +1535 -238
- package/dist/index.js.map +16 -13
- package/dist/manifest.js +12 -6
- package/dist/manifest.js.map +4 -4
- package/dist/manifest.json +2 -2
- package/dist/oidc/clientAuth.d.ts +6 -2
- package/dist/oidc/config.d.ts +19 -5
- package/dist/oidc/keys.d.ts +7 -3
- package/dist/oidc/logout.d.ts +2 -2
- package/dist/oidc/routes.d.ts +8 -6
- package/dist/routes/protectRoute.d.ts +2 -2
- package/dist/server.d.ts +18 -0
- package/dist/server.js +29362 -0
- package/dist/server.js.map +287 -0
- package/dist/utils.d.ts +1 -1
- package/docs/AGENT-AUTH.md +54 -0
- package/docs/MIGRATE-FROM-LUCIA.md +235 -0
- package/docs/OAUTH-PROVIDER-QUIRKS.md +150 -0
- package/docs/UI-COMPONENTS.md +226 -0
- package/package.json +14 -6
package/dist/manifest.js
CHANGED
|
@@ -5956,6 +5956,14 @@ var serializedTool = Type.Object({
|
|
|
5956
5956
|
});
|
|
5957
5957
|
var manifestSchema = Type.Object({
|
|
5958
5958
|
contract: Type.Union([Type.Literal(1), Type.Literal(2)]),
|
|
5959
|
+
discovery: Type.Optional(Type.Object({
|
|
5960
|
+
audiences: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
5961
|
+
certificationUrl: Type.Optional(Type.String()),
|
|
5962
|
+
intents: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
5963
|
+
keywords: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
5964
|
+
protocols: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
5965
|
+
url: Type.Optional(Type.String())
|
|
5966
|
+
})),
|
|
5959
5967
|
identity: Type.Object({
|
|
5960
5968
|
accent: Type.Optional(Type.String({ pattern: "^#[0-9a-fA-F]{3,8}$" })),
|
|
5961
5969
|
category: Type.String({ minLength: 1 }),
|
|
@@ -8622,10 +8630,10 @@ var manifest = defineManifest()({
|
|
|
8622
8630
|
identity: {
|
|
8623
8631
|
accent: "#6366f1",
|
|
8624
8632
|
category: "auth",
|
|
8625
|
-
description: "OAuth/OIDC sign-in for
|
|
8633
|
+
description: "OAuth/OIDC sign-in for people and AI agents, including open auth.md registration, scoped delegation, agent account linking, 60+ providers, passkeys, MFA, enterprise SSO/SCIM, organizations, roles, and API keys.",
|
|
8626
8634
|
docsUrl: "https://github.com/absolutejs/auth",
|
|
8627
8635
|
name: "@absolutejs/auth",
|
|
8628
|
-
tagline: "Let people create accounts and sign in."
|
|
8636
|
+
tagline: "Let people and agents create accounts and sign in."
|
|
8629
8637
|
},
|
|
8630
8638
|
implements: [
|
|
8631
8639
|
defineImplementation()({
|
|
@@ -8736,9 +8744,7 @@ var manifest = defineManifest()({
|
|
|
8736
8744
|
if (file === undefined)
|
|
8737
8745
|
return "auth is not configured yet \u2014 no auth.config.ts found";
|
|
8738
8746
|
const source = await workspace.read(file) ?? "";
|
|
8739
|
-
const providers = [
|
|
8740
|
-
...source.matchAll(/(\w+):\s*\{/g)
|
|
8741
|
-
].map((match) => match[1]).filter((name) => name !== undefined && name !== "providersConfiguration" && name !== "scope");
|
|
8747
|
+
const providers = [...source.matchAll(/(\w+):\s*\{/g)].map((match) => match[1]).filter((name) => name !== undefined && name !== "providersConfiguration" && name !== "scope");
|
|
8742
8748
|
return providers.length === 0 ? "no sign-in providers configured" : `configured providers: ${providers.join(", ")}`;
|
|
8743
8749
|
}
|
|
8744
8750
|
})
|
|
@@ -8778,5 +8784,5 @@ export {
|
|
|
8778
8784
|
manifest
|
|
8779
8785
|
};
|
|
8780
8786
|
|
|
8781
|
-
//# debugId=
|
|
8787
|
+
//# debugId=A5EB62EB0BC9FF3264756E2164756E21
|
|
8782
8788
|
//# sourceMappingURL=manifest.js.map
|