@cedarjs/auth-dbauth-api 9.0.0-canary.1784 → 9.0.0-canary.3124
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/DbAuthHandler.d.ts +37 -43
- package/dist/DbAuthHandler.d.ts.map +1 -1
- package/dist/DbAuthHandler.js +171 -162
- package/dist/decoder.js +5 -30
- package/dist/errors.d.ts +2 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -61
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -36
- package/dist/originValidation.d.ts +131 -0
- package/dist/originValidation.d.ts.map +1 -0
- package/dist/originValidation.js +92 -0
- package/dist/session.d.ts +114 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +103 -0
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +21 -68
- package/package.json +25 -16
- package/LICENSE +0 -21
package/dist/DbAuthHandler.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AuthenticationResponseJSON, RegistrationResponseJSON } from '@simplewebauthn/types';
|
|
1
|
+
import type { AuthenticationResponseJSON, RegistrationResponseJSON } from '@simplewebauthn/server';
|
|
3
2
|
import type { APIGatewayProxyEvent, Context as LambdaContext } from 'aws-lambda';
|
|
4
3
|
import type { CorsConfig, CorsContext, PartialRequest } from '@cedarjs/api';
|
|
4
|
+
import type { DbAuthCookieConfig } from './session.js';
|
|
5
5
|
interface SignupFlowOptions<TUserAttributes = Record<string, unknown>> {
|
|
6
6
|
/**
|
|
7
7
|
* Allow users to sign up. Defaults to true.
|
|
@@ -128,21 +128,26 @@ type AuthMethodOutput = [
|
|
|
128
128
|
statusCode: number;
|
|
129
129
|
}?
|
|
130
130
|
];
|
|
131
|
-
export interface DbAuthHandlerOptions<TUser = UserType, TUserAttributes = Record<string, unknown>> {
|
|
131
|
+
export interface DbAuthHandlerOptions<TUser = UserType, TUserAttributes = Record<string, unknown>, TDb extends object = Record<string, unknown>> {
|
|
132
132
|
/**
|
|
133
133
|
* Provide prisma db client
|
|
134
|
+
*
|
|
135
|
+
* Typed generically so that `authModelAccessor` and `credentialModelAccessor`
|
|
136
|
+
* below are constrained to the model names that actually exist in the user's
|
|
137
|
+
* schema, without importing @prisma/client. A real PrismaClient instance
|
|
138
|
+
* always satisfies `Record<string, unknown>`.
|
|
134
139
|
*/
|
|
135
|
-
db:
|
|
140
|
+
db: TDb;
|
|
136
141
|
/**
|
|
137
142
|
* The name of the property you'd call on `db` to access your user table.
|
|
138
143
|
* ie. if your Prisma model is named `User` this value would be `user`, as in `db.user`
|
|
139
144
|
*/
|
|
140
|
-
authModelAccessor: keyof
|
|
145
|
+
authModelAccessor: keyof TDb;
|
|
141
146
|
/**
|
|
142
147
|
* The name of the property you'd call on `db` to access your user credentials table.
|
|
143
148
|
* ie. if your Prisma model is named `UserCredential` this value would be `userCredential`, as in `db.userCredential`
|
|
144
149
|
*/
|
|
145
|
-
credentialModelAccessor?: keyof
|
|
150
|
+
credentialModelAccessor?: keyof TDb;
|
|
146
151
|
/**
|
|
147
152
|
* The fields that are allowed to be returned from the user table when
|
|
148
153
|
* invoking handlers that return a user object (like forgotPassword and signup)
|
|
@@ -166,33 +171,7 @@ export interface DbAuthHandlerOptions<TUser = UserType, TUserAttributes = Record
|
|
|
166
171
|
/**
|
|
167
172
|
* Object containing cookie config options
|
|
168
173
|
*/
|
|
169
|
-
cookie?:
|
|
170
|
-
/** @deprecated set this option in `cookie.attributes` */
|
|
171
|
-
Path?: string;
|
|
172
|
-
/** @deprecated set this option in `cookie.attributes` */
|
|
173
|
-
HttpOnly?: boolean;
|
|
174
|
-
/** @deprecated set this option in `cookie.attributes` */
|
|
175
|
-
Secure?: boolean;
|
|
176
|
-
/** @deprecated set this option in `cookie.attributes` */
|
|
177
|
-
SameSite?: string;
|
|
178
|
-
/** @deprecated set this option in `cookie.attributes` */
|
|
179
|
-
Domain?: string;
|
|
180
|
-
attributes?: {
|
|
181
|
-
Path?: string;
|
|
182
|
-
HttpOnly?: boolean;
|
|
183
|
-
Secure?: boolean;
|
|
184
|
-
SameSite?: string;
|
|
185
|
-
Domain?: string;
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* The name of the cookie that dbAuth sets
|
|
189
|
-
*
|
|
190
|
-
* %port% will be replaced with the port the api server is running on.
|
|
191
|
-
* If you have multiple RW apps running on the same host, you'll need to
|
|
192
|
-
* make sure they all use unique cookie names
|
|
193
|
-
*/
|
|
194
|
-
name?: string;
|
|
195
|
-
};
|
|
174
|
+
cookie?: DbAuthCookieConfig;
|
|
196
175
|
/**
|
|
197
176
|
* Object containing forgot password options
|
|
198
177
|
*/
|
|
@@ -227,6 +206,17 @@ export interface DbAuthHandlerOptions<TUser = UserType, TUserAttributes = Record
|
|
|
227
206
|
* CORS settings, same as in createGraphqlHandler
|
|
228
207
|
*/
|
|
229
208
|
cors?: CorsConfig;
|
|
209
|
+
/**
|
|
210
|
+
* Extra origins that are trusted for state-changing (non-GET) requests,
|
|
211
|
+
* on top of the request's own host and any origins already listed in
|
|
212
|
+
* `cors.origin`.
|
|
213
|
+
*
|
|
214
|
+
* Needed when the web side and API are on different origins and
|
|
215
|
+
* `cors.origin` isn't set to those origins, or when `cors.origin` is set
|
|
216
|
+
* to `true` -- reflecting any request origin is never treated as trust,
|
|
217
|
+
* so that combination requires listing trusted origins here explicitly.
|
|
218
|
+
*/
|
|
219
|
+
trustedOrigins?: string | string[];
|
|
230
220
|
}
|
|
231
221
|
export interface SignupHandlerOptions<TUserAttributes> {
|
|
232
222
|
username: string;
|
|
@@ -246,13 +236,13 @@ type Params = AuthenticationResponseJSON & RegistrationResponseJSON & {
|
|
|
246
236
|
};
|
|
247
237
|
type DbAuthSession<T = unknown> = Record<string, T>;
|
|
248
238
|
type CorsHeaders = Record<string, string>;
|
|
249
|
-
export declare class DbAuthHandler<TUser extends UserType, TUserAttributes = Record<string, unknown>> {
|
|
239
|
+
export declare class DbAuthHandler<TUser extends UserType, TUserAttributes = Record<string, unknown>, TDb extends object = Record<string, unknown>> {
|
|
250
240
|
event: Request | APIGatewayProxyEvent;
|
|
251
241
|
_normalizedRequest: PartialRequest<Params> | undefined;
|
|
252
242
|
httpMethod: string;
|
|
253
|
-
options: DbAuthHandlerOptions<TUser, TUserAttributes>;
|
|
243
|
+
options: DbAuthHandlerOptions<TUser, TUserAttributes, TDb>;
|
|
254
244
|
cookie: string;
|
|
255
|
-
db:
|
|
245
|
+
db: TDb;
|
|
256
246
|
dbAccessor: any;
|
|
257
247
|
dbCredentialAccessor: any;
|
|
258
248
|
allowedUserFields: string[];
|
|
@@ -301,13 +291,15 @@ export declare class DbAuthHandler<TUser extends UserType, TUserAttributes = Rec
|
|
|
301
291
|
*/
|
|
302
292
|
get _deleteSessionHeader(): Headers;
|
|
303
293
|
constructor(event: APIGatewayProxyEvent | Request, _context: LambdaContext, // @TODO:
|
|
304
|
-
options: DbAuthHandlerOptions<TUser, TUserAttributes>);
|
|
294
|
+
options: DbAuthHandlerOptions<TUser, TUserAttributes, TDb>);
|
|
305
295
|
init(): Promise<void>;
|
|
306
296
|
invoke(): Promise<{
|
|
307
297
|
headers: Record<string, string | string[]>;
|
|
308
298
|
body?: string | undefined;
|
|
309
299
|
statusCode: number;
|
|
310
300
|
}>;
|
|
301
|
+
_requestHost(): string | null;
|
|
302
|
+
_requestProtocol(): string | null;
|
|
311
303
|
forgotPassword(): Promise<AuthMethodOutput>;
|
|
312
304
|
getToken(): Promise<AuthMethodOutput>;
|
|
313
305
|
login(): Promise<AuthMethodOutput>;
|
|
@@ -322,15 +314,14 @@ export declare class DbAuthHandler<TUser extends UserType, TUserAttributes = Rec
|
|
|
322
314
|
_validateOptions(): void;
|
|
323
315
|
_saveChallenge(userId: string | number, value: string | null): Promise<void>;
|
|
324
316
|
_webAuthnCookie(id: string, expires: string): string;
|
|
325
|
-
_sanitizeUser(user: Record<string, unknown>):
|
|
317
|
+
_sanitizeUser(user: Record<string, unknown>): Record<string, unknown>;
|
|
326
318
|
_decodeEvent(): void;
|
|
327
319
|
_cookieAttributes({ expires, options, }: {
|
|
328
320
|
expires?: 'now' | string;
|
|
329
321
|
options?: DbAuthHandlerOptions['cookie'];
|
|
330
|
-
}):
|
|
322
|
+
}): string[];
|
|
331
323
|
_createAuthProviderCookieString(): string;
|
|
332
324
|
_createSessionCookieString<TIdType = any>(data: DbAuthSession<TIdType>, csrfToken: string): string;
|
|
333
|
-
_validateCsrf(): Promise<boolean>;
|
|
334
325
|
_findUserByToken(token: string): Promise<any>;
|
|
335
326
|
_clearResetToken(user: Record<string, unknown>): Promise<void>;
|
|
336
327
|
_verifyUser(username: string | undefined, password: string | undefined): Promise<any>;
|
|
@@ -339,9 +330,7 @@ export declare class DbAuthHandler<TUser extends UserType, TUserAttributes = Rec
|
|
|
339
330
|
_createUser(): Promise<any>;
|
|
340
331
|
_getAuthMethod(): Promise<AuthMethodNames>;
|
|
341
332
|
_validateField(name: string, value: string | undefined): value is string;
|
|
342
|
-
_loginResponse(user: Record<string, any>, statusCode?: number): [{
|
|
343
|
-
id: string;
|
|
344
|
-
}, Headers, {
|
|
333
|
+
_loginResponse(user: Record<string, any>, statusCode?: number): [Record<string, any>, Headers, {
|
|
345
334
|
statusCode: number;
|
|
346
335
|
}];
|
|
347
336
|
_logoutResponse(response?: Record<string, unknown>): AuthMethodOutput;
|
|
@@ -360,6 +349,11 @@ export declare class DbAuthHandler<TUser extends UserType, TUserAttributes = Rec
|
|
|
360
349
|
body: string;
|
|
361
350
|
headers: Headers;
|
|
362
351
|
};
|
|
352
|
+
_forbidden(message: string): {
|
|
353
|
+
statusCode: number;
|
|
354
|
+
body: string;
|
|
355
|
+
headers: Headers;
|
|
356
|
+
};
|
|
363
357
|
_getUserMatchCriteriaOptions(username: string, usernameMatchFlowOption: string | undefined): {
|
|
364
358
|
[x: string]: string;
|
|
365
359
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DbAuthHandler.d.ts","sourceRoot":"","sources":["../src/DbAuthHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DbAuthHandler.d.ts","sourceRoot":"","sources":["../src/DbAuthHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAG1B,wBAAwB,EAKzB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAIhF,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAyB3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAetD,UAAU,iBAAiB,CAAC,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACnE;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;OAOG;IACH,OAAO,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,eAAe,CAAC,KAAK,GAAG,CAAA;IAE7E;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAA;IAElD;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,cAAc,CAAC,EAAE,MAAM,CAAA;KACxB,CAAA;IAED;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,UAAU,yBAAyB,CAAC,KAAK,GAAG,QAAQ;IAClD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,GAAG,CAAA;IAC5C,MAAM,CAAC,EAAE;QACP,gBAAgB,CAAC,EAAE,MA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