@vunexa/lixa 0.1.6-alpha.13 → 0.1.6-alpha.15
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 +392 -674
- package/dist/credentials/credentials-manager.d.ts +14 -0
- package/dist/credentials/credentials-manager.d.ts.map +1 -1
- package/dist/credentials/types.d.ts +29 -6
- package/dist/credentials/types.d.ts.map +1 -1
- package/dist/dao/session-cache.d.ts.map +1 -1
- package/dist/dao/types.d.ts +24 -0
- package/dist/dao/types.d.ts.map +1 -1
- package/dist/errors.d.ts +62 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/export-types/index.d.ts +899 -88
- package/dist/identity/composite.d.ts +65 -0
- package/dist/identity/composite.d.ts.map +1 -0
- package/dist/identity/index.d.ts +4 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/self-managed.d.ts +66 -0
- package/dist/identity/self-managed.d.ts.map +1 -0
- package/dist/identity/types.d.ts +232 -0
- package/dist/identity/types.d.ts.map +1 -0
- package/dist/index.cjs +1543 -341
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +868 -80
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1461 -267
- package/dist/index.js.map +1 -1
- package/dist/lixa.d.ts +190 -35
- package/dist/lixa.d.ts.map +1 -1
- package/dist/models/session.d.ts +12 -6
- package/dist/models/session.d.ts.map +1 -1
- package/dist/providers/IProvider.d.ts +4 -0
- package/dist/providers/IProvider.d.ts.map +1 -1
- package/dist/types.d.ts +140 -10
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/user-info.d.ts.map +1 -1
- package/package.json +3 -11
package/dist/types.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { ScryptPasswordHasher, ScryptHasherOptions, Pbkdf2PasswordHasher, Pbkdf2
|
|
|
6
6
|
import { validatePasswordPolicy } from "./credentials/policy";
|
|
7
7
|
import { LocalCredentialsStorage } from "./credentials/local-storage";
|
|
8
8
|
import { CredentialsManager } from "./credentials/credentials-manager";
|
|
9
|
+
import { UserIdentity, IdentityTokens, IdentityAuthResult, ForgotPasswordParams, ForgotPasswordResult, ConfirmPasswordResetParams, ConfirmSignUpParams, ResendConfirmationCodeParams, ResendConfirmationCodeResult, IIdentityProvider, IdentityConfig } from "./identity/types";
|
|
10
|
+
import { SelfManagedIdentityProvider } from "./identity/self-managed";
|
|
11
|
+
import { CompositeIdentityProvider, type CompositeIdentityProviderOptions } from "./identity/composite";
|
|
9
12
|
export { Session, ConnectedResource } from "./models/session";
|
|
10
13
|
export { ProviderMetadata };
|
|
11
14
|
export { OAuthTokenResponse } from "./models/session";
|
|
@@ -22,6 +25,8 @@ export { ScryptPasswordHasher, ScryptHasherOptions, Pbkdf2PasswordHasher, Pbkdf2
|
|
|
22
25
|
export { validatePasswordPolicy };
|
|
23
26
|
export { LocalCredentialsStorage };
|
|
24
27
|
export { CredentialsManager };
|
|
28
|
+
export { UserIdentity, IdentityTokens, IdentityAuthResult, ForgotPasswordParams, ForgotPasswordResult, ConfirmPasswordResetParams, ConfirmSignUpParams, ResendConfirmationCodeParams, ResendConfirmationCodeResult, IIdentityProvider, IdentityConfig, CompositeIdentityProvider, CompositeIdentityProviderOptions, };
|
|
29
|
+
export { SelfManagedIdentityProvider };
|
|
25
30
|
/**
|
|
26
31
|
* Configuration for an OAuth provider instance.
|
|
27
32
|
*
|
|
@@ -58,6 +63,27 @@ export { CredentialsManager };
|
|
|
58
63
|
*
|
|
59
64
|
* @public
|
|
60
65
|
*/
|
|
66
|
+
/**
|
|
67
|
+
* Scopes configuration explicitly partitioned into authentication and resource authorization.
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export interface ScopesConfig {
|
|
72
|
+
/**
|
|
73
|
+
* Explicit identity scopes requested during primary authentication (AuthN) (e.g. ['openid', 'email', 'profile']).
|
|
74
|
+
* If omitted, uses the provider's default identity scopes.
|
|
75
|
+
*/
|
|
76
|
+
auth?: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Explicit permission scopes requested during post-authentication resource authorization (AuthZ)
|
|
79
|
+
* (e.g. ['https://www.googleapis.com/auth/drive.readonly'] or ['repo']).
|
|
80
|
+
*/
|
|
81
|
+
resource?: string[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Configuration for an OAuth provider instance.
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
61
87
|
export type ProviderConfig = {
|
|
62
88
|
/** The OAuth client ID provided by the provider */
|
|
63
89
|
clientId: string;
|
|
@@ -65,15 +91,38 @@ export type ProviderConfig = {
|
|
|
65
91
|
clientSecret: string;
|
|
66
92
|
/** The redirect URI registered with the provider */
|
|
67
93
|
redirectUri: string;
|
|
68
|
-
/**
|
|
69
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Explicit scopes for authentication and post-login resource authorization.
|
|
96
|
+
* Can be configured as `{ auth: [...], resource: [...] }` or a shorthand `string[]` for auth scopes.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* scopes: {
|
|
101
|
+
* auth: ["openid", "email", "profile"],
|
|
102
|
+
* resource: ["https://www.googleapis.com/auth/drive.readonly"],
|
|
103
|
+
* }
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
scopes?: ScopesConfig | string[];
|
|
107
|
+
/**
|
|
108
|
+
* Flat alias for authentication scopes (AuthN).
|
|
109
|
+
*/
|
|
110
|
+
authScopes?: string[];
|
|
111
|
+
/**
|
|
112
|
+
* Flat alias for post-authentication resource authorization scopes (AuthZ).
|
|
113
|
+
*/
|
|
114
|
+
resourceScopes?: string[];
|
|
70
115
|
/**
|
|
71
116
|
* Set to true to allow non-identity (resource) scopes during primary authentication flow.
|
|
72
117
|
* By default (false), Lixa restricts primary AuthN scopes to identity scopes to maintain
|
|
73
118
|
* clean AuthN vs AuthZ separation.
|
|
74
119
|
*/
|
|
75
120
|
allowNonAuthScopes?: boolean;
|
|
76
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Custom query parameters passed to the OAuth authorization endpoint (e.g. `{ identity_provider: "Google" }`).
|
|
123
|
+
*/
|
|
124
|
+
authorizationParams?: Record<string, string>;
|
|
125
|
+
/** Additional provider-specific configuration parameters (alias for authorizationParams) */
|
|
77
126
|
extraConfig?: Record<string, string>;
|
|
78
127
|
} & ({
|
|
79
128
|
provider?: never;
|
|
@@ -155,14 +204,16 @@ export declare enum AccountLinkingStrategy {
|
|
|
155
204
|
/** Automatically merge identities matching the same verified primary email address */
|
|
156
205
|
AUTO_LINK_BY_VERIFIED_EMAIL = "AUTO_LINK_BY_VERIFIED_EMAIL",
|
|
157
206
|
/** Keep identity profiles isolated per provider (no automatic account merging) */
|
|
158
|
-
ISOLATED = "ISOLATED"
|
|
207
|
+
ISOLATED = "ISOLATED",
|
|
208
|
+
/** Require password or original provider step-up verification before linking secondary accounts */
|
|
209
|
+
STEP_UP_VERIFICATION = "STEP_UP_VERIFICATION"
|
|
159
210
|
}
|
|
160
211
|
/**
|
|
161
212
|
* Supported mode values for account linking configuration.
|
|
162
213
|
*
|
|
163
214
|
* @public
|
|
164
215
|
*/
|
|
165
|
-
export type AccountLinkingMode = AccountLinkingStrategy | "AUTO_LINK_BY_VERIFIED_EMAIL" | "ISOLATED" | "linkByEmail" | "separate";
|
|
216
|
+
export type AccountLinkingMode = AccountLinkingStrategy | "AUTO_LINK_BY_VERIFIED_EMAIL" | "ISOLATED" | "STEP_UP_VERIFICATION" | "linkByEmail" | "separate" | "stepUp";
|
|
166
217
|
/**
|
|
167
218
|
* Account linking settings for Lixa.
|
|
168
219
|
*
|
|
@@ -184,26 +235,81 @@ export interface AccountLinkingConfig {
|
|
|
184
235
|
*/
|
|
185
236
|
requireVerifiedEmail?: boolean;
|
|
186
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* Unified storage adapter interface (e.g. Prisma or Drizzle adapter).
|
|
240
|
+
* When provided to Lixa via config.storage, automatically configures session, state, and resource storage.
|
|
241
|
+
* @public
|
|
242
|
+
*/
|
|
243
|
+
export interface StorageAdapter {
|
|
244
|
+
sessionStorage?: any;
|
|
245
|
+
resourceStorage?: any;
|
|
246
|
+
stateStorage?: any;
|
|
247
|
+
credentialsStorage?: any;
|
|
248
|
+
accountStorage?: any;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Inferred key of identity providers configured in a CompositeIdentityProvider.
|
|
252
|
+
*
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
export type ConfiguredIdentityKey<TIdentity> = TIdentity extends CompositeIdentityProvider<infer TProviders, any> ? (keyof TProviders & string) : string;
|
|
256
|
+
/**
|
|
257
|
+
* Inferred key of OAuth / OIDC providers configured in a CompositeIdentityProvider or inline providers.
|
|
258
|
+
*
|
|
259
|
+
* @public
|
|
260
|
+
*/
|
|
261
|
+
export type ConfiguredOAuthKey<TIdentity = unknown, TProviders extends Record<string, ProviderConfig> = Record<string, ProviderConfig>> = TIdentity extends CompositeIdentityProvider<any, infer TOAuth> ? (keyof TOAuth & string) | (keyof TProviders & string) : keyof TProviders & string;
|
|
187
262
|
/**
|
|
188
263
|
* Main configuration object for Lixa.
|
|
189
264
|
* Provides type-safe provider name inference.
|
|
190
265
|
*
|
|
191
266
|
* @public
|
|
192
267
|
*/
|
|
193
|
-
export interface LixaConfig<TProviders extends Record<string, ProviderConfig> = Record<string, ProviderConfig>> {
|
|
268
|
+
export interface LixaConfig<TIdentity extends IIdentityProvider | IdentityConfig = IIdentityProvider | IdentityConfig, TProviders extends Record<string, ProviderConfig> = Record<string, ProviderConfig>> {
|
|
194
269
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
270
|
+
* Primary Identity Provider configuration (Self-Managed Database, AWS Cognito, Auth0, Okta,
|
|
271
|
+
* or a CompositeIdentityProvider combining multiple backends and OAuth providers).
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* Composite Identity Provider:
|
|
275
|
+
* ```typescript
|
|
276
|
+
* identityProvider: new CompositeIdentityProvider({
|
|
277
|
+
* defaultProvider: 'cognito',
|
|
278
|
+
* providers: {
|
|
279
|
+
* cognito: new CognitoIdentityProvider(...),
|
|
280
|
+
* 'self-managed': new SelfManagedIdentityProvider(...)
|
|
281
|
+
* },
|
|
282
|
+
* oauthProviders: {
|
|
283
|
+
* google: { provider: new GoogleProvider(), ... }
|
|
284
|
+
* }
|
|
285
|
+
* })
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
identityProvider?: TIdentity;
|
|
289
|
+
/**
|
|
290
|
+
* Alias for {@link LixaConfig.identityProvider}.
|
|
291
|
+
*/
|
|
292
|
+
identity?: TIdentity;
|
|
293
|
+
/**
|
|
294
|
+
* Direct OAuth 2.0 / OIDC provider configurations (Google, GitHub, etc.).
|
|
295
|
+
* When using CompositeIdentityProvider, OAuth providers can also be defined in its `oauthProviders` field.
|
|
197
296
|
*/
|
|
198
297
|
providers?: TProviders;
|
|
199
298
|
/**
|
|
200
299
|
* Credentials (username and password) authentication configuration.
|
|
300
|
+
* Automatically maps to a SelfManagedIdentityProvider.
|
|
201
301
|
*/
|
|
202
302
|
credentials?: CredentialsConfig;
|
|
303
|
+
/**
|
|
304
|
+
* Unified database storage adapter (e.g. createPrismaAdapter or createDrizzleAdapter).
|
|
305
|
+
* Automatically configures sessionHandler, stateHandler, and resourceHandler.
|
|
306
|
+
*/
|
|
307
|
+
storage?: StorageAdapter;
|
|
203
308
|
/**
|
|
204
309
|
* Account linking configuration for multi-SSO user linking.
|
|
310
|
+
* Pass `true` or `"linkByEmail"` for automatic email-verified linking.
|
|
205
311
|
*/
|
|
206
|
-
accountLinking?: AccountLinkingConfig;
|
|
312
|
+
accountLinking?: boolean | AccountLinkingMode | AccountLinkingConfig;
|
|
207
313
|
/**
|
|
208
314
|
* Optional custom state handler.
|
|
209
315
|
* Handles state generation and storage during OAuth authorization flow.
|
|
@@ -247,7 +353,30 @@ export interface LixaConfig<TProviders extends Record<string, ProviderConfig> =
|
|
|
247
353
|
* If provided, all Lixa logs will be routed through this logger.
|
|
248
354
|
*/
|
|
249
355
|
logger?: LixaLogger;
|
|
356
|
+
/**
|
|
357
|
+
* Session cookie name or dynamic resolution function.
|
|
358
|
+
* Can accept a static string or `(lixa: Lixa, req?: unknown) => string`.
|
|
359
|
+
* Automatically evaluated live against the instance when getSessionCookieName() is called.
|
|
360
|
+
*/
|
|
361
|
+
sessionCookieName?: SessionCookieResolver;
|
|
250
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* Interface exposing identity information for dynamic session cookie name resolution.
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
export interface LixaCookieContext {
|
|
368
|
+
/**
|
|
369
|
+
* Retrieves the currently active identity provider.
|
|
370
|
+
*/
|
|
371
|
+
getIdentityProvider(): IIdentityProvider | undefined;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Dynamic resolver for session cookie name.
|
|
375
|
+
* Can be a static string or a dynamic callback receiving the Lixa instance and an optional request context.
|
|
376
|
+
*
|
|
377
|
+
* @public
|
|
378
|
+
*/
|
|
379
|
+
export type SessionCookieResolver<TContext extends LixaCookieContext = LixaCookieContext> = string | ((lixa: TContext, req?: unknown) => string);
|
|
251
380
|
/**
|
|
252
381
|
* Log level for Lixa structured logging.
|
|
253
382
|
* @public
|
|
@@ -257,7 +386,7 @@ export type LogLevel = "INFO" | "WARN" | "ERROR" | "DEBUG";
|
|
|
257
386
|
* Log context for Lixa structured logging.
|
|
258
387
|
* @public
|
|
259
388
|
*/
|
|
260
|
-
export type LogContext = "Init" | "Auth" | "Token" | "Session" | "State" | "AccountLinking" | "Resource" | "Credentials";
|
|
389
|
+
export type LogContext = "Init" | "Auth" | "Token" | "Session" | "State" | "AccountLinking" | "Resource" | "Credentials" | "Identity";
|
|
261
390
|
/**
|
|
262
391
|
* Custom logger interface for Lixa.
|
|
263
392
|
* @public
|
|
@@ -277,4 +406,5 @@ export interface LixaLogger {
|
|
|
277
406
|
export type SafeLixaConfig<TProviders extends Record<string, ProviderConfig>> = LixaConfig<TProviders> & {
|
|
278
407
|
providers: TProviders;
|
|
279
408
|
};
|
|
409
|
+
export type { AccountHandler, AccountStorage } from "./dao/types";
|
|
280
410
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtI,OAAO,EAAW,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtI,OAAO,EAAW,gBAAgB,EAAE,MAAM,kBA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,SAAS,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAiBvD;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAiB7E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CACjC,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,QAAQ,CAAC,CA4BnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,kBAAkB,EAC7B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,CAoCjC"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunexa/lixa",
|
|
3
|
-
"version": "0.1.6-alpha.
|
|
3
|
+
"version": "0.1.6-alpha.15",
|
|
4
4
|
"description": "Lixa is a flexible, provider-agnostic OAuth and OpenID Connect (OIDC) client library that simplifies multi-provider authentication flows. It supports seamless integration with providers like Google and GitHub, offers extensible session management, and enables dynamic provider resolution based on callback URLs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oauth",
|
|
7
7
|
"oidc"
|
|
8
8
|
],
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"author": "
|
|
11
|
-
"
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/vunexa/lixa.git",
|
|
14
|
-
"directory": "lixa"
|
|
15
|
-
},
|
|
16
|
-
"homepage": "https://github.com/vunexa/lixa/tree/master/lixa#readme",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/vunexa/lixa/issues"
|
|
19
|
-
},
|
|
10
|
+
"author": "Vunexa",
|
|
11
|
+
"homepage": "https://lixa.vunexa.app",
|
|
20
12
|
"type": "module",
|
|
21
13
|
"main": "./dist/index.cjs",
|
|
22
14
|
"module": "./dist/index.js",
|