@absolutejs/auth 0.29.0-beta.4 → 0.29.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 +47 -4
- package/dist/index.js +322 -33
- package/dist/index.js.map +10 -9
- package/dist/oidc/config.d.ts +13 -2
- package/dist/oidc/dpop.d.ts +10 -0
- package/dist/oidc/inMemoryStores.d.ts +4 -3
- package/dist/oidc/par.d.ts +28 -0
- package/dist/oidc/postgresStores.d.ts +139 -1
- package/dist/oidc/routes.d.ts +43 -1
- package/dist/oidc/types.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13452,10 +13452,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
|
|
|
13452
13452
|
query: {
|
|
13453
13453
|
client_id?: string | undefined;
|
|
13454
13454
|
scope?: string | undefined;
|
|
13455
|
+
claims?: string | undefined;
|
|
13455
13456
|
nonce?: string | undefined;
|
|
13457
|
+
redirect_uri?: string | undefined;
|
|
13458
|
+
acr_values?: string | undefined;
|
|
13456
13459
|
code_challenge?: string | undefined;
|
|
13457
13460
|
code_challenge_method?: string | undefined;
|
|
13458
|
-
|
|
13461
|
+
request_uri?: string | undefined;
|
|
13459
13462
|
response_type?: string | undefined;
|
|
13460
13463
|
state?: string | undefined;
|
|
13461
13464
|
};
|
|
@@ -13511,6 +13514,45 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
|
|
|
13511
13514
|
};
|
|
13512
13515
|
};
|
|
13513
13516
|
};
|
|
13517
|
+
} & {
|
|
13518
|
+
[x: string]: {
|
|
13519
|
+
post: {
|
|
13520
|
+
body: {
|
|
13521
|
+
client_id?: string | undefined;
|
|
13522
|
+
scope?: string | undefined;
|
|
13523
|
+
audience?: string | undefined;
|
|
13524
|
+
claims?: string | undefined;
|
|
13525
|
+
nonce?: string | undefined;
|
|
13526
|
+
resource?: string | undefined;
|
|
13527
|
+
client_secret?: string | undefined;
|
|
13528
|
+
redirect_uri?: string | undefined;
|
|
13529
|
+
acr_values?: string | undefined;
|
|
13530
|
+
code_challenge?: string | undefined;
|
|
13531
|
+
code_challenge_method?: string | undefined;
|
|
13532
|
+
response_type?: string | undefined;
|
|
13533
|
+
state?: string | undefined;
|
|
13534
|
+
client_assertion?: string | undefined;
|
|
13535
|
+
client_assertion_type?: string | undefined;
|
|
13536
|
+
};
|
|
13537
|
+
params: {};
|
|
13538
|
+
query: unknown;
|
|
13539
|
+
headers: {
|
|
13540
|
+
authorization?: string | undefined;
|
|
13541
|
+
};
|
|
13542
|
+
response: {
|
|
13543
|
+
200: Response;
|
|
13544
|
+
422: {
|
|
13545
|
+
type: "validation";
|
|
13546
|
+
on: string;
|
|
13547
|
+
summary?: string;
|
|
13548
|
+
message?: string;
|
|
13549
|
+
found?: unknown;
|
|
13550
|
+
property?: string;
|
|
13551
|
+
expected?: string;
|
|
13552
|
+
};
|
|
13553
|
+
};
|
|
13554
|
+
};
|
|
13555
|
+
};
|
|
13514
13556
|
} & {
|
|
13515
13557
|
[x: string]: {
|
|
13516
13558
|
post: {
|
|
@@ -15020,12 +15062,13 @@ export * from './oidc/types';
|
|
|
15020
15062
|
export { oidcProviderRoutes } from './oidc/routes';
|
|
15021
15063
|
export { generateSigningKey, jwkThumbprint, signJwt, toPublicJwk, verifyJwt } from './oidc/keys';
|
|
15022
15064
|
export type { SigningKey } from './oidc/keys';
|
|
15023
|
-
export { verifyDpopProof } from './oidc/dpop';
|
|
15065
|
+
export { extractDpopNonceClaim, mintDpopNonce, verifyDpopNonce, verifyDpopProof } from './oidc/dpop';
|
|
15024
15066
|
export type { DpopResult } from './oidc/dpop';
|
|
15025
15067
|
export { CLIENT_ASSERTION_TYPE, verifyClientAssertion } from './oidc/clientAuth';
|
|
15026
|
-
export { createInMemoryAuthorizationCodeStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore } from './oidc/inMemoryStores';
|
|
15068
|
+
export { createInMemoryAuthorizationCodeStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore, createInMemoryPushedAuthorizationRequestStore } from './oidc/inMemoryStores';
|
|
15069
|
+
export { consumePushedRequest, pushAuthorizationRequest, DEFAULT_PAR_TTL_MS, REQUEST_URI_PREFIX } from './oidc/par';
|
|
15027
15070
|
export { fanOutBackchannelLogout, mintLogoutToken, resolvePostLogoutRedirect, verifyIdTokenHint } from './oidc/logout';
|
|
15028
|
-
export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, oauthClientAssertionJtisTable, oauthClientRegistrationTokensTable, oauthClientsTable, oauthCodesTable, oauthDeviceAuthorizationsTable, oauthInitialAccessTokensTable, oauthLogoutDeliveriesTable, oauthRefreshTokensTable } from './oidc/postgresStores';
|
|
15071
|
+
export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createNeonPushedAuthorizationRequestStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, createPostgresPushedAuthorizationRequestStore, oauthClientAssertionJtisTable, oauthClientRegistrationTokensTable, oauthClientsTable, oauthCodesTable, oauthDeviceAuthorizationsTable, oauthInitialAccessTokensTable, oauthLogoutDeliveriesTable, oauthPushedAuthorizationRequestsTable, oauthRefreshTokensTable } from './oidc/postgresStores';
|
|
15029
15072
|
export { deleteRegisteredClient, getRegisteredClient, registerClient, updateRegisteredClient, type ClientRegistrationDecision, type ClientRegistrationMetadata, type OnClientRegistration, type RegisterClientResult } from './oidc/registration';
|
|
15030
15073
|
export * from './adaptive/config';
|
|
15031
15074
|
export * from './adaptive/fingerprint';
|