@absolutejs/auth 0.30.0-beta.4 → 0.30.0-beta.5
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/index.d.ts +4 -1
- package/dist/index.js +78 -3
- package/dist/index.js.map +8 -7
- package/dist/oidc/clientAuth.d.ts +7 -0
- package/dist/oidc/jar.d.ts +14 -0
- package/dist/oidc/postgresStores.d.ts +34 -0
- package/dist/oidc/routes.d.ts +1 -0
- package/dist/oidc/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,3 +6,10 @@ export declare const verifyClientAssertion: ({ assertion, expectedAudience, jtiS
|
|
|
6
6
|
jtiStore?: ClientAssertionJtiStore;
|
|
7
7
|
resolveClient: (clientId: string) => Promise<OAuthClient | undefined>;
|
|
8
8
|
}) => Promise<OAuthClient | undefined>;
|
|
9
|
+
export declare const verifyJwtSignedByClient: ({ jwt, client }: {
|
|
10
|
+
client: OAuthClient;
|
|
11
|
+
jwt: string;
|
|
12
|
+
}) => Promise<{
|
|
13
|
+
header: any;
|
|
14
|
+
payload: any;
|
|
15
|
+
} | undefined>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OAuthClient } from './types';
|
|
2
|
+
export type JarParseResult = {
|
|
3
|
+
error: 'invalid_request_object';
|
|
4
|
+
ok: false;
|
|
5
|
+
} | {
|
|
6
|
+
ok: true;
|
|
7
|
+
params: Record<string, string>;
|
|
8
|
+
};
|
|
9
|
+
export declare const parseSignedRequestObject: ({ client, expectedIssuer, jwt, now }: {
|
|
10
|
+
client: OAuthClient;
|
|
11
|
+
expectedIssuer: string;
|
|
12
|
+
jwt: string;
|
|
13
|
+
now?: number;
|
|
14
|
+
}) => Promise<JarParseResult>;
|
|
@@ -347,6 +347,40 @@ export declare const oauthClientsTable: import("drizzle-orm/pg-core").PgTableWit
|
|
|
347
347
|
}, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
|
|
348
348
|
size: undefined;
|
|
349
349
|
}>;
|
|
350
|
+
require_pushed_authorization_requests: import("drizzle-orm/pg-core").PgColumn<{
|
|
351
|
+
name: "require_pushed_authorization_requests";
|
|
352
|
+
tableName: "auth_oauth_clients";
|
|
353
|
+
dataType: "boolean";
|
|
354
|
+
columnType: "PgBoolean";
|
|
355
|
+
data: boolean;
|
|
356
|
+
driverParam: boolean;
|
|
357
|
+
notNull: false;
|
|
358
|
+
hasDefault: false;
|
|
359
|
+
isPrimaryKey: false;
|
|
360
|
+
isAutoincrement: false;
|
|
361
|
+
hasRuntimeDefault: false;
|
|
362
|
+
enumValues: undefined;
|
|
363
|
+
baseColumn: never;
|
|
364
|
+
identity: undefined;
|
|
365
|
+
generated: undefined;
|
|
366
|
+
}, {}, {}>;
|
|
367
|
+
require_signed_request_object: import("drizzle-orm/pg-core").PgColumn<{
|
|
368
|
+
name: "require_signed_request_object";
|
|
369
|
+
tableName: "auth_oauth_clients";
|
|
370
|
+
dataType: "boolean";
|
|
371
|
+
columnType: "PgBoolean";
|
|
372
|
+
data: boolean;
|
|
373
|
+
driverParam: boolean;
|
|
374
|
+
notNull: false;
|
|
375
|
+
hasDefault: false;
|
|
376
|
+
isPrimaryKey: false;
|
|
377
|
+
isAutoincrement: false;
|
|
378
|
+
hasRuntimeDefault: false;
|
|
379
|
+
enumValues: undefined;
|
|
380
|
+
baseColumn: never;
|
|
381
|
+
identity: undefined;
|
|
382
|
+
generated: undefined;
|
|
383
|
+
}, {}, {}>;
|
|
350
384
|
scopes: import("drizzle-orm/pg-core").PgColumn<{
|
|
351
385
|
name: "scopes";
|
|
352
386
|
tableName: "auth_oauth_clients";
|
package/dist/oidc/routes.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<U
|
|
|
31
31
|
scope?: string | undefined;
|
|
32
32
|
claims?: string | undefined;
|
|
33
33
|
nonce?: string | undefined;
|
|
34
|
+
request?: string | undefined;
|
|
34
35
|
redirect_uri?: string | undefined;
|
|
35
36
|
acr_values?: string | undefined;
|
|
36
37
|
code_challenge?: string | undefined;
|
package/dist/oidc/types.d.ts
CHANGED
package/package.json
CHANGED