@absolutejs/auth 0.84.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.
- package/CHANGELOG.md +11 -0
- package/changelog.json +26 -0
- package/dist/bun.js +27 -1
- package/dist/bun.js.map +3 -3
- package/dist/cli/migrate.js +27 -1
- package/dist/cli/migrate.js.map +3 -3
- package/dist/cli/setup.d.ts +1 -1
- package/dist/htmx/index.js +27 -1
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +27 -1
- package/dist/index.js.map +3 -3
- package/dist/linkedProviders/index.js +27 -1
- package/dist/linkedProviders/index.js.map +3 -3
- package/dist/providers/clients.d.ts +28 -3
- package/dist/providers/index.js +28 -28
- package/dist/providers/index.js.map +4 -4
- package/dist/providers/neon.d.ts +27 -27
- package/dist/server.js +27 -1
- package/dist/server.js.map +3 -3
- package/docs/neon.md +12 -5
- package/package.json +2 -2
package/dist/providers/neon.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
export declare const neonProviderConfiguration:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
revocationRequest: {
|
|
15
|
+
authIn: "body";
|
|
16
|
+
encoding: "application/x-www-form-urlencoded";
|
|
17
|
+
tokenParamName: "token";
|
|
18
|
+
url: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
27
|
};
|
|
28
|
-
}
|
|
28
|
+
} & import("citra").ProviderConfig<any>;
|
|
29
29
|
export type NeonManagementScope = `urn:neoncloud:${'projects' | 'orgs'}:${'create' | 'read' | 'update' | 'delete' | 'permission'}`;
|
|
30
30
|
export type NeonProviderOptions = {
|
|
31
31
|
credentials: {
|
|
@@ -38,5 +38,5 @@ export type NeonProviderOptions = {
|
|
|
38
38
|
/** Request both scopes required by Neon to issue a refresh token. */
|
|
39
39
|
offlineAccess?: boolean;
|
|
40
40
|
};
|
|
41
|
-
/** Configure `
|
|
42
|
-
export declare const createNeonProviderConfiguration: ({ credentials, offlineAccess, scopes }: NeonProviderOptions) =>
|
|
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=
|
|
42215
|
+
//# debugId=111690DAA1672B5F64756E2164756E21
|
|
42190
42216
|
//# sourceMappingURL=server.js.map
|