@absolutejs/auth 0.56.0 → 0.56.2
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 +2 -0
- package/dist/cli/migrate.js +39 -13
- package/dist/cli/migrate.js.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +71 -15
- package/dist/index.js.map +6 -6
- package/dist/oidc/config.d.ts +2 -1
- package/dist/oidc/index.d.ts +11 -0
- package/dist/oidc/index.js +11437 -0
- package/dist/oidc/index.js.map +108 -0
- package/dist/oidc/postgresStores.d.ts +30 -0
- package/dist/oidc/routes.d.ts +1 -0
- package/dist/oidc/types.d.ts +2 -0
- package/dist/server.js +71 -15
- package/dist/server.js.map +6 -6
- package/package.json +10 -2
package/dist/oidc/config.d.ts
CHANGED
|
@@ -122,8 +122,9 @@ export declare const exchangeToken: <UserType>({ actorClientId, audience, config
|
|
|
122
122
|
requestedScopes?: string[];
|
|
123
123
|
subjectToken: string;
|
|
124
124
|
}) => Promise<TokenExchangeResult>;
|
|
125
|
-
export declare const issueTokenSet: <UserType>({ acr, claims, clientCertThumbprint, clientId, config, dpopJkt, nonce, now, scopes, sub }: {
|
|
125
|
+
export declare const issueTokenSet: <UserType>({ acr, audience, claims, clientCertThumbprint, clientId, config, dpopJkt, nonce, now, scopes, sub }: {
|
|
126
126
|
acr?: string;
|
|
127
|
+
audience?: string;
|
|
127
128
|
claims?: Record<string, unknown>;
|
|
128
129
|
clientCertThumbprint?: string;
|
|
129
130
|
clientId: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declaration-stable OIDC provider entry point.
|
|
3
|
+
*
|
|
4
|
+
* Server applications that only need to issue and verify OAuth/OIDC tokens
|
|
5
|
+
* should import this subpath instead of loading every optional Auth feature
|
|
6
|
+
* through the package root.
|
|
7
|
+
*/
|
|
8
|
+
export type { OidcProviderConfig } from './config';
|
|
9
|
+
export { generateSigningKey, jwkThumbprint, signJwt, toPublicJwk, verifyJwt, type SigningKey } from './keys';
|
|
10
|
+
export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore } from './postgresStores';
|
|
11
|
+
export type { AuthorizationCodeStore, ClientAssertionJtiStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, InitialAccessTokenStore, OAuthClient, OAuthClientStore, OidcRefreshTokenStore } from './types';
|