@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/docs/neon.md
CHANGED
|
@@ -16,7 +16,7 @@ const neon = createNeonProviderConfiguration({
|
|
|
16
16
|
scopes: ['urn:neoncloud:orgs:read', 'urn:neoncloud:projects:read'],
|
|
17
17
|
offlineAccess: true
|
|
18
18
|
});
|
|
19
|
-
// Pass
|
|
19
|
+
// Pass providersConfiguration: { neon } to your existing Auth configuration.
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Keep credentials on the server. Register the exact callback used by your Auth
|
|
@@ -26,12 +26,12 @@ mount. The preset enables S256 PKCE, identifies accounts by `sub`, and requests
|
|
|
26
26
|
when the customer needs those operations. Delete and organization administration
|
|
27
27
|
are never implicit. Do not infer an email or organization from the subject.
|
|
28
28
|
|
|
29
|
-
The existing
|
|
29
|
+
The existing built-in provider authorization, callback, profile, refresh and revoke
|
|
30
30
|
routes handle this definition. An account connection is separate from signing the
|
|
31
31
|
customer into your application; enforce your application's account-linking policy.
|
|
32
|
-
The generic `createOAuthLinkedProviderCredentialResolver`
|
|
33
|
-
built-in
|
|
34
|
-
|
|
32
|
+
The generic `createOAuthLinkedProviderCredentialResolver` recognizes Neon through
|
|
33
|
+
Citra's built-in provider registry, including background token renewal.
|
|
34
|
+
This preset alone does not
|
|
35
35
|
provide a resource picker, database provisioning, secret delivery or browser
|
|
36
36
|
assistance. Do not enable the customer-facing connection until those pieces and
|
|
37
37
|
partner credentials are in place.
|
|
@@ -40,3 +40,10 @@ Use a provider-owned sign-in window where required. Do not proxy sign-in into an
|
|
|
40
40
|
embedded browser that violates the identity provider's policies. Never put client
|
|
41
41
|
secrets, refresh tokens or database connection strings into chat or referral URLs.
|
|
42
42
|
Referral agreements and reporting are separate from OAuth permission grants.
|
|
43
|
+
|
|
44
|
+
## Migration from 0.84.0
|
|
45
|
+
|
|
46
|
+
Move the helper result from `customProviders.neon` to
|
|
47
|
+
`providersConfiguration.neon`. Neon is now a built-in Citra provider; retaining a
|
|
48
|
+
custom provider under that name is rejected to prevent provider collisions.
|
|
49
|
+
The helper retains the same credentials, scopes and offline-access options.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.85.0",
|
|
3
3
|
"name": "@absolutejs/auth",
|
|
4
4
|
"description": "An authorization library for absolutejs",
|
|
5
5
|
"repository": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@neondatabase/serverless": "1.0.0",
|
|
76
76
|
"@opentelemetry/api": "1.9.1",
|
|
77
77
|
"@simplewebauthn/browser": "13.3.0",
|
|
78
|
-
"citra": "0.
|
|
78
|
+
"citra": "0.30.0",
|
|
79
79
|
"typebox": "^1.3.16"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|