@absolutejs/auth 0.27.0-beta.0 → 0.27.0-beta.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/dist/adaptive/config.d.ts +22 -0
- package/dist/adaptive/inMemoryStores.d.ts +3 -0
- package/dist/adaptive/postgresStores.d.ts +293 -0
- package/dist/adaptive/types.d.ts +50 -0
- package/dist/apikeys/config.d.ts +64 -0
- package/dist/apikeys/inMemoryStores.d.ts +4 -0
- package/dist/apikeys/postgresStores.d.ts +507 -0
- package/dist/apikeys/routes.d.ts +83 -0
- package/dist/apikeys/types.d.ts +53 -0
- package/dist/index.d.ts +39 -4
- package/dist/index.js +2103 -1388
- package/dist/index.js.map +25 -18
- package/dist/portal/routes.d.ts +1 -1
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
package/dist/portal/routes.d.ts
CHANGED
|
@@ -91,8 +91,8 @@ export declare const portalRoutes: ({ emit, onScimTokenCreated, onSsoConnectionC
|
|
|
91
91
|
oidc: {
|
|
92
92
|
put: {
|
|
93
93
|
body: {
|
|
94
|
-
redirectUri?: string | undefined;
|
|
95
94
|
scopes?: string[] | undefined;
|
|
95
|
+
redirectUri?: string | undefined;
|
|
96
96
|
issuer: string;
|
|
97
97
|
clientId: string;
|
|
98
98
|
clientSecret: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CredentialsFor, NonEmptyArray, OAuth2Client, OAuth2TokenResponse, ProviderOption, ProvidersMap } from 'citra';
|
|
2
2
|
import { Cookie, status as statusType, redirect as redirectType } from 'elysia';
|
|
3
3
|
import { ElysiaCustomStatusResponse } from 'elysia/error';
|
|
4
|
+
import type { ApiKeysConfig } from './apikeys/config';
|
|
4
5
|
import type { AuditConfig } from './audit/config';
|
|
5
6
|
import type { AuthorizationConfig } from './authorization/config';
|
|
6
7
|
import type { ComplianceConfig } from './compliance/config';
|
|
@@ -213,6 +214,13 @@ export type AuthConfig<UserType> = {
|
|
|
213
214
|
* mounts `{scimRoute}/Users` (+ `/ServiceProviderConfig`) with per-org bearer-token auth via
|
|
214
215
|
* `scimTokenStore`, and maps SCIM resources to the consumer's user store through hooks. */
|
|
215
216
|
scim?: ScimConfig;
|
|
217
|
+
/** Machine-to-machine authentication: static API keys (`sk_…`) + the OAuth2
|
|
218
|
+
* client_credentials grant. When `apiClientStore` + `accessTokenStore` are set,
|
|
219
|
+
* mounts `{tokenRoute}` (defaults `/oauth2/token`) so registered clients can
|
|
220
|
+
* exchange `client_id`/`client_secret` for short-lived `at_…` access tokens.
|
|
221
|
+
* Pair with the exported `createApiKey` / `resolveApiPrincipal` / `hasScopes`
|
|
222
|
+
* helpers to issue and guard with static keys. */
|
|
223
|
+
apikeys?: ApiKeysConfig;
|
|
216
224
|
/** First-class multi-tenancy (the WorkOS model). When present, mounts organization +
|
|
217
225
|
* membership + invitation routes under `{organizationsRoute}`: list the caller's orgs, create
|
|
218
226
|
* one (caller becomes owner), invite/accept/revoke by email, and list/remove members. Ties the
|
package/package.json
CHANGED