@absolutejs/auth 0.83.0 → 0.85.0

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.
@@ -0,0 +1,42 @@
1
+ import type { OAuth2ProviderClientConfiguration } from '../types';
2
+ /** Canonical Citra definition for the registered Neon partner application. */
3
+ export declare const neonProviderConfiguration: {
4
+ authorizationUrl: string;
5
+ isOIDC: true;
6
+ isRefreshable: true;
7
+ PKCEMethod: "S256";
8
+ profileRequest: {
9
+ authIn: "header";
10
+ encoding: "application/json";
11
+ method: "GET";
12
+ url: string;
13
+ };
14
+ revocationRequest: {
15
+ authIn: "body";
16
+ encoding: "application/x-www-form-urlencoded";
17
+ tokenParamName: "token";
18
+ url: string;
19
+ };
20
+ scopeRequired: true;
21
+ subject: string[];
22
+ subjectType: "string";
23
+ tokenRequest: {
24
+ authIn: "body";
25
+ encoding: "application/x-www-form-urlencoded";
26
+ url: string;
27
+ };
28
+ } & import("citra").ProviderConfig<any>;
29
+ export type NeonManagementScope = `urn:neoncloud:${'projects' | 'orgs'}:${'create' | 'read' | 'update' | 'delete' | 'permission'}`;
30
+ export type NeonProviderOptions = {
31
+ credentials: {
32
+ clientId: string;
33
+ clientSecret: string;
34
+ redirectUri: string;
35
+ };
36
+ /** Select permissions deliberately; no management permissions are implicit. */
37
+ scopes: readonly NeonManagementScope[];
38
+ /** Request both scopes required by Neon to issue a refresh token. */
39
+ offlineAccess?: boolean;
40
+ };
41
+ /** Configure `providersConfiguration.neon` without granting management permissions implicitly. */
42
+ export declare const createNeonProviderConfiguration: ({ credentials, offlineAccess, scopes }: NeonProviderOptions) => OAuth2ProviderClientConfiguration<"neon">;
package/dist/server.js CHANGED
@@ -2393,6 +2393,32 @@ var providers = defineProviders({
2393
2393
  url: "https://nid.naver.com/oauth2.0/token"
2394
2394
  }
2395
2395
  },
2396
+ neon: {
2397
+ authorizationUrl: "https://oauth2.neon.tech/oauth2/auth",
2398
+ isOIDC: true,
2399
+ isRefreshable: true,
2400
+ PKCEMethod: "S256",
2401
+ profileRequest: {
2402
+ authIn: "header",
2403
+ encoding: "application/json",
2404
+ method: "GET",
2405
+ url: "https://oauth2.neon.tech/userinfo"
2406
+ },
2407
+ revocationRequest: {
2408
+ authIn: "body",
2409
+ encoding: "application/x-www-form-urlencoded",
2410
+ tokenParamName: "token",
2411
+ url: "https://oauth2.neon.tech/oauth2/revoke"
2412
+ },
2413
+ scopeRequired: true,
2414
+ subject: ["sub"],
2415
+ subjectType: "string",
2416
+ tokenRequest: {
2417
+ authIn: "body",
2418
+ encoding: "application/x-www-form-urlencoded",
2419
+ url: "https://oauth2.neon.tech/oauth2/token"
2420
+ }
2421
+ },
2396
2422
  notion: {
2397
2423
  authorizationUrl: "https://api.notion.com/v1/oauth/authorize",
2398
2424
  email: ["bot", "owner", "user", "person", "email"],
@@ -42186,5 +42212,5 @@ export {
42186
42212
  userSessionIdTypebox
42187
42213
  };
42188
42214
 
42189
- //# debugId=B801BF9A602847F164756E2164756E21
42215
+ //# debugId=111690DAA1672B5F64756E2164756E21
42190
42216
  //# sourceMappingURL=server.js.map