@absolutejs/auth 0.75.1 → 0.75.3
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 +21 -2
- package/dist/agents/config.d.ts +5 -1
- package/dist/agents/index.js +2 -1
- package/dist/agents/index.js.map +3 -3
- package/dist/agents/routes.d.ts +2 -0
- package/dist/cli/migrate.js +8 -2
- package/dist/cli/migrate.js.map +4 -4
- package/dist/client/dpop.d.ts +34 -0
- package/dist/client/dpop.test.d.ts +1 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +101 -3
- package/dist/client/index.js.map +4 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -2
- package/dist/index.js.map +7 -7
- package/dist/oidc/config.d.ts +2 -1
- package/dist/oidc/index.js +4 -1
- package/dist/oidc/index.js.map +3 -3
- package/dist/oidc/postgresStores.d.ts +15 -0
- package/dist/oidc/routes.d.ts +1 -0
- package/dist/oidc/types.d.ts +1 -0
- package/dist/server.js +16 -2
- package/dist/server.js.map +7 -7
- package/package.json +1 -1
package/dist/agents/routes.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare const agentAuthPlugin: (config?: AgentAuthConfig) => Elysia<"", "
|
|
|
35
35
|
scopes_supported: string[];
|
|
36
36
|
resource_name?: string | undefined;
|
|
37
37
|
resource_logo_uri?: string | undefined;
|
|
38
|
+
dpop_bound_access_tokens_required?: boolean | undefined;
|
|
38
39
|
authorization_servers: string[];
|
|
39
40
|
bearer_methods_supported: string[];
|
|
40
41
|
};
|
|
@@ -149,6 +150,7 @@ export declare const agentAuthRoutes: (config?: AgentAuthConfig) => Elysia<"", "
|
|
|
149
150
|
scopes_supported: string[];
|
|
150
151
|
resource_name?: string | undefined;
|
|
151
152
|
resource_logo_uri?: string | undefined;
|
|
153
|
+
dpop_bound_access_tokens_required?: boolean | undefined;
|
|
152
154
|
authorization_servers: string[];
|
|
153
155
|
bearer_methods_supported: string[];
|
|
154
156
|
};
|
package/dist/cli/migrate.js
CHANGED
|
@@ -2827,6 +2827,7 @@ var oauthCodesTable = pgTable10("auth_oauth_codes", {
|
|
|
2827
2827
|
user_id: varchar10("user_id", { length: ID_LENGTH8 }).notNull()
|
|
2828
2828
|
});
|
|
2829
2829
|
var oauthDeviceAuthorizationsTable = pgTable10("auth_oauth_device_authorizations", {
|
|
2830
|
+
audience: varchar10("audience", { length: 2048 }),
|
|
2830
2831
|
client_id: varchar10("client_id", { length: ID_LENGTH8 }).notNull(),
|
|
2831
2832
|
created_at_ms: bigint8("created_at_ms", { mode: "number" }).notNull(),
|
|
2832
2833
|
device_code_hash: varchar10("device_code_hash", {
|
|
@@ -3341,6 +3342,10 @@ var oidcSocketTicketsMigration = {
|
|
|
3341
3342
|
id: "0004_socket_tickets",
|
|
3342
3343
|
sql: tablesToInitSql([oauthSocketTicketsTable])
|
|
3343
3344
|
};
|
|
3345
|
+
var oidcDeviceAudienceMigration = {
|
|
3346
|
+
id: "0005_device_resource_audience",
|
|
3347
|
+
sql: 'ALTER TABLE "auth_oauth_device_authorizations" ADD COLUMN IF NOT EXISTS "audience" varchar(2048);'
|
|
3348
|
+
};
|
|
3344
3349
|
var sessionOAuthSubjectMigration = {
|
|
3345
3350
|
id: "0002_oauth_subject",
|
|
3346
3351
|
sql: [
|
|
@@ -3416,7 +3421,8 @@ var blockMigrations = {
|
|
|
3416
3421
|
]).migrations,
|
|
3417
3422
|
oidcResourceAudienceMigration,
|
|
3418
3423
|
oidcRefreshTokenFamiliesMigration,
|
|
3419
|
-
oidcSocketTicketsMigration
|
|
3424
|
+
oidcSocketTicketsMigration,
|
|
3425
|
+
oidcDeviceAudienceMigration
|
|
3420
3426
|
]
|
|
3421
3427
|
},
|
|
3422
3428
|
organizations: initMigration("organizations", [
|
|
@@ -3635,5 +3641,5 @@ var main = async () => {
|
|
|
3635
3641
|
};
|
|
3636
3642
|
await main();
|
|
3637
3643
|
|
|
3638
|
-
//# debugId=
|
|
3644
|
+
//# debugId=A94ED948A86827BA64756E2164756E21
|
|
3639
3645
|
//# sourceMappingURL=migrate.js.map
|