@absolutejs/auth 0.30.0-beta.3 → 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.
@@ -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";
@@ -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;
@@ -8,6 +8,7 @@ export type OAuthClient = {
8
8
  postLogoutRedirectUris?: string[];
9
9
  redirectUris: string[];
10
10
  requirePushedAuthorizationRequests?: boolean;
11
+ requireSignedRequestObject?: boolean;
11
12
  scopes: string[];
12
13
  };
13
14
  export type ClientAssertionJtiStore = {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.30.0-beta.3",
2
+ "version": "0.30.0-beta.5",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "license": "CC BY-NC 4.0",
11
11
  "author": "Alex Kahn",
12
12
  "scripts": {
13
- "build": "rm -rf dist && bun build src/index.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/plugins/index.ts --outdir dist --sourcemap --target=bun --external elysia --external react && tsc --emitDeclarationOnly --project tsconfig.json",
13
+ "build": "rm -rf dist && bun build src/index.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/plugins/index.ts --outdir dist --sourcemap --target=bun --external elysia --external react && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json",
14
14
  "config": "absolute config",
15
15
  "test": "bun test",
16
16
  "format": "absolute prettier --write",
@@ -73,6 +73,10 @@
73
73
  "import": "./dist/htmx/index.js",
74
74
  "types": "./dist/htmx/index.d.ts"
75
75
  },
76
+ "./fingerprint-client": {
77
+ "import": "./dist/fingerprint-client/index.js",
78
+ "types": "./dist/fingerprint-client/index.d.ts"
79
+ },
76
80
  "./plugins": {
77
81
  "import": "./dist/plugins/index.js",
78
82
  "types": "./dist/plugins/index.d.ts"