@absolutejs/auth 0.55.0 → 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 +7 -0
- package/dist/agents/index.js +43 -36
- package/dist/agents/index.js.map +3 -3
- package/dist/agents/routes.d.ts +32 -0
- package/dist/apikeys/routes.d.ts +2 -2
- package/dist/authInstance.d.ts +12 -0
- package/dist/authorization/protectPermission.d.ts +2 -2
- package/dist/credentials/login.d.ts +4 -4
- package/dist/credentials/routes.d.ts +4 -4
- package/dist/index.d.ts +3 -303
- package/dist/index.js +154 -143
- package/dist/index.js.map +5 -5
- package/dist/mfa/routes.d.ts +2 -2
- package/dist/mfa/sms.d.ts +2 -2
- package/dist/oidc/routes.d.ts +14 -14
- package/dist/organizations/routes.d.ts +1 -1
- package/dist/portal/routes.d.ts +3 -3
- package/dist/roles/routes.d.ts +1 -1
- package/dist/routes/protectRoute.d.ts +2 -2
- package/dist/routes/refresh.d.ts +1 -1
- package/dist/routes/revoke.d.ts +1 -1
- package/dist/routes/sessions.d.ts +3 -3
- package/dist/server.d.ts +18 -0
- package/dist/server.js +29362 -0
- package/dist/server.js.map +287 -0
- package/dist/sso/discoveryRoute.d.ts +1 -1
- package/dist/sso/oidcRoutes.d.ts +2 -2
- package/dist/sso/samlRoutes.d.ts +4 -4
- package/dist/utils.d.ts +1 -1
- package/package.json +9 -4
|
@@ -33,8 +33,8 @@ export declare const ssoDiscoveryRoute: ({ getOrganizationByEmailDomain, ssoConn
|
|
|
33
33
|
headers: unknown;
|
|
34
34
|
response: {
|
|
35
35
|
400: "An \"email\" query parameter is required" | "A valid email address is required";
|
|
36
|
-
200: Response;
|
|
37
36
|
404: "No SSO organization is configured for this email domain" | "No SSO connection is configured for this organization";
|
|
37
|
+
200: Response;
|
|
38
38
|
422: {
|
|
39
39
|
type: "validation";
|
|
40
40
|
on: string;
|
package/dist/sso/oidcRoutes.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export declare const oidcSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
|
|
|
33
33
|
query: unknown;
|
|
34
34
|
headers: unknown;
|
|
35
35
|
response: {
|
|
36
|
-
200: Response;
|
|
37
36
|
404: "No OIDC connection is configured for this organization";
|
|
37
|
+
200: Response;
|
|
38
38
|
422: {
|
|
39
39
|
type: "validation";
|
|
40
40
|
on: string;
|
|
@@ -61,8 +61,8 @@ export declare const oidcSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
|
|
|
61
61
|
headers: unknown;
|
|
62
62
|
response: {
|
|
63
63
|
400: "SSO session cookies are missing" | "Invalid SSO callback request" | "SSO organization mismatch" | "OIDC token response is missing an id_token";
|
|
64
|
-
200: Response;
|
|
65
64
|
404: "No OIDC connection is configured for this organization";
|
|
65
|
+
200: Response;
|
|
66
66
|
422: {
|
|
67
67
|
type: "validation";
|
|
68
68
|
on: string;
|
package/dist/sso/samlRoutes.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
|
|
|
35
35
|
query: unknown;
|
|
36
36
|
headers: unknown;
|
|
37
37
|
response: {
|
|
38
|
-
200: Response;
|
|
39
38
|
404: "No SAML connection is configured for this organization";
|
|
39
|
+
200: Response;
|
|
40
40
|
422: {
|
|
41
41
|
type: "validation";
|
|
42
42
|
on: string;
|
|
@@ -62,8 +62,8 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
|
|
|
62
62
|
query: unknown;
|
|
63
63
|
headers: unknown;
|
|
64
64
|
response: {
|
|
65
|
-
200: Response;
|
|
66
65
|
404: "No SAML connection is configured for this organization";
|
|
66
|
+
200: Response;
|
|
67
67
|
422: {
|
|
68
68
|
type: "validation";
|
|
69
69
|
on: string;
|
|
@@ -87,8 +87,8 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
|
|
|
87
87
|
query: unknown;
|
|
88
88
|
headers: unknown;
|
|
89
89
|
response: {
|
|
90
|
-
200: Response;
|
|
91
90
|
404: "No SAML connection is configured for this organization";
|
|
91
|
+
200: Response;
|
|
92
92
|
422: {
|
|
93
93
|
type: "validation";
|
|
94
94
|
on: string;
|
|
@@ -141,9 +141,9 @@ export declare const samlSsoRoutes: <UserType>({ authSessionStore, cookieSecure,
|
|
|
141
141
|
headers: unknown;
|
|
142
142
|
response: {
|
|
143
143
|
400: "Missing SAMLRequest or SAMLResponse" | "Invalid SAML LogoutRequest";
|
|
144
|
-
200: Response;
|
|
145
144
|
501: "SAML Single Logout is not configured";
|
|
146
145
|
404: "No SAML connection is configured for this organization";
|
|
146
|
+
200: Response;
|
|
147
147
|
422: {
|
|
148
148
|
type: "validation";
|
|
149
149
|
on: string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const resolveCookieSecure: (override?: boolean) => boolean;
|
|
|
21
21
|
export declare const resolveOAuthAuthorization: ({ authProvider, providerConfiguration, providerInstance, tokenResponse, now }: {
|
|
22
22
|
authProvider: string;
|
|
23
23
|
providerConfiguration?: ProviderConfig;
|
|
24
|
-
providerInstance: OAuth2Client<ProviderOption>;
|
|
24
|
+
providerInstance: Pick<OAuth2Client<ProviderOption>, "fetchUserProfile">;
|
|
25
25
|
tokenResponse: OAuth2TokenResponse;
|
|
26
26
|
now?: number;
|
|
27
27
|
}) => Promise<ResolvedOAuthAuthorization>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.55.
|
|
2
|
+
"version": "0.55.1",
|
|
3
3
|
"name": "@absolutejs/auth",
|
|
4
4
|
"description": "An authorization library for absolutejs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/absolutejs/absolute-auth.git"
|
|
7
|
+
"url": "git+https://github.com/absolutejs/absolute-auth.git"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://github.com/absolutejs/absolute-auth",
|
|
10
10
|
"bugs": {
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"bin": {
|
|
15
|
-
"absolute-auth": "
|
|
15
|
+
"absolute-auth": "dist/cli/migrate.js"
|
|
16
16
|
},
|
|
17
17
|
"license": "BSL-1.1",
|
|
18
18
|
"author": "Alex Kahn",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "rm -rf dist && bun build src/index.ts src/agents/index.ts src/saml.ts src/webauthn.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
|
|
20
|
+
"build": "rm -rf dist && bun build src/index.ts src/server.ts src/agents/index.ts src/saml.ts src/webauthn.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
|
|
21
21
|
"config": "absolute config",
|
|
22
22
|
"test": "bun test",
|
|
23
23
|
"format": "absolute prettier --write",
|
|
@@ -114,6 +114,11 @@
|
|
|
114
114
|
"types": "./dist/index.d.ts",
|
|
115
115
|
"require": "./dist/index.js"
|
|
116
116
|
},
|
|
117
|
+
"./server": {
|
|
118
|
+
"import": "./dist/server.js",
|
|
119
|
+
"types": "./dist/server.d.ts",
|
|
120
|
+
"require": "./dist/server.js"
|
|
121
|
+
},
|
|
117
122
|
"./client": {
|
|
118
123
|
"import": "./dist/client/index.js",
|
|
119
124
|
"types": "./dist/client/index.d.ts",
|