@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/oidc/config.d.ts
CHANGED
|
@@ -223,7 +223,8 @@ export type DeviceAuthorizationResponse = {
|
|
|
223
223
|
verification_uri: string;
|
|
224
224
|
verification_uri_complete: string;
|
|
225
225
|
};
|
|
226
|
-
export declare const issueDeviceAuthorization: <UserType>({ clientId, config, now, requestedScopes }: {
|
|
226
|
+
export declare const issueDeviceAuthorization: <UserType>({ audience, clientId, config, now, requestedScopes }: {
|
|
227
|
+
audience?: string;
|
|
227
228
|
clientId: string;
|
|
228
229
|
config: OidcProviderConfig<UserType>;
|
|
229
230
|
now?: number;
|
package/dist/oidc/index.js
CHANGED
|
@@ -12053,6 +12053,7 @@ var oauthCodesTable = pgTable("auth_oauth_codes", {
|
|
|
12053
12053
|
user_id: varchar("user_id", { length: ID_LENGTH }).notNull()
|
|
12054
12054
|
});
|
|
12055
12055
|
var oauthDeviceAuthorizationsTable = pgTable("auth_oauth_device_authorizations", {
|
|
12056
|
+
audience: varchar("audience", { length: 2048 }),
|
|
12056
12057
|
client_id: varchar("client_id", { length: ID_LENGTH }).notNull(),
|
|
12057
12058
|
created_at_ms: bigint("created_at_ms", { mode: "number" }).notNull(),
|
|
12058
12059
|
device_code_hash: varchar("device_code_hash", {
|
|
@@ -12168,6 +12169,7 @@ var toCodeValues = (code) => ({
|
|
|
12168
12169
|
user_id: code.userId
|
|
12169
12170
|
});
|
|
12170
12171
|
var toDeviceAuth = (row) => ({
|
|
12172
|
+
audience: row.audience ?? undefined,
|
|
12171
12173
|
clientId: row.client_id,
|
|
12172
12174
|
createdAt: row.created_at_ms,
|
|
12173
12175
|
deviceCodeHash: row.device_code_hash,
|
|
@@ -12305,6 +12307,7 @@ var createPostgresDeviceAuthorizationStore = (db) => ({
|
|
|
12305
12307
|
},
|
|
12306
12308
|
saveDeviceAuthorization: async (deviceAuthorization) => {
|
|
12307
12309
|
await db.insert(oauthDeviceAuthorizationsTable).values({
|
|
12310
|
+
audience: deviceAuthorization.audience ?? null,
|
|
12308
12311
|
client_id: deviceAuthorization.clientId,
|
|
12309
12312
|
created_at_ms: deviceAuthorization.createdAt,
|
|
12310
12313
|
device_code_hash: deviceAuthorization.deviceCodeHash,
|
|
@@ -12944,5 +12947,5 @@ export {
|
|
|
12944
12947
|
consumeSocketTicket
|
|
12945
12948
|
};
|
|
12946
12949
|
|
|
12947
|
-
//# debugId=
|
|
12950
|
+
//# debugId=9E34D0D4B7BFB31E64756E2164756E21
|
|
12948
12951
|
//# sourceMappingURL=index.js.map
|