@absolutejs/auth 0.57.7 → 0.57.9
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/agents/index.d.ts +1 -1
- package/dist/agents/index.js +66 -35
- package/dist/agents/index.js.map +3 -3
- package/dist/agents/postgresStores.d.ts +586 -1
- package/dist/cli/migrate.js +152 -68
- package/dist/cli/migrate.js.map +6 -6
- package/dist/htmx/index.js +269 -111
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.d.ts +6 -5
- package/dist/index.js +405 -168
- package/dist/index.js.map +12 -12
- package/dist/linkedProviders/index.js +269 -111
- package/dist/linkedProviders/index.js.map +3 -3
- package/dist/providers/clients.d.ts +30 -17
- package/dist/providers/index.js +269 -111
- package/dist/providers/index.js.map +3 -3
- package/dist/routes/profile.d.ts +6 -3
- package/dist/routes/refresh.d.ts +1 -1
- package/dist/routes/revoke.d.ts +1 -1
- package/dist/server.js +399 -168
- package/dist/server.js.map +12 -12
- package/dist/session/neonStore.d.ts +60 -0
- package/dist/types.d.ts +6 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -87,17 +87,23 @@ export declare const buildClientProviders: (providersConfiguration: OAuth2Config
|
|
|
87
87
|
};
|
|
88
88
|
} & import("citra").ProviderConfig) | ({
|
|
89
89
|
authorizationUrl: string;
|
|
90
|
+
createAuthorizationURLSearchParams: {
|
|
91
|
+
response_mode: string;
|
|
92
|
+
};
|
|
93
|
+
createClientSecret: (config: any) => Promise<string>;
|
|
90
94
|
isOIDC: true;
|
|
91
95
|
isRefreshable: true;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
method: "GET";
|
|
96
|
+
revocationRequest: {
|
|
97
|
+
authIn: "body";
|
|
98
|
+
encoding: "application/x-www-form-urlencoded";
|
|
99
|
+
tokenParamName: "token";
|
|
97
100
|
url: string;
|
|
98
101
|
};
|
|
99
102
|
scopeRequired: false;
|
|
100
103
|
subject: string[];
|
|
104
|
+
subjectBySource: {
|
|
105
|
+
idToken: string[];
|
|
106
|
+
};
|
|
101
107
|
subjectType: "string";
|
|
102
108
|
tokenRequest: {
|
|
103
109
|
authIn: "body";
|
|
@@ -161,6 +167,7 @@ export declare const buildClientProviders: (providersConfiguration: OAuth2Config
|
|
|
161
167
|
authIn: "body";
|
|
162
168
|
body: URLSearchParams;
|
|
163
169
|
encoding: "application/json";
|
|
170
|
+
inputSource: "refreshToken";
|
|
164
171
|
tokenParamName: "token";
|
|
165
172
|
url: (config: any) => string;
|
|
166
173
|
};
|
|
@@ -1240,6 +1247,7 @@ export declare const buildClientProviders: (providersConfiguration: OAuth2Config
|
|
|
1240
1247
|
authIn: "header";
|
|
1241
1248
|
body: URLSearchParams;
|
|
1242
1249
|
encoding: "application/json";
|
|
1250
|
+
inputSource: "refreshToken";
|
|
1243
1251
|
url: string;
|
|
1244
1252
|
};
|
|
1245
1253
|
scopeRequired: true;
|
|
@@ -1595,27 +1603,32 @@ export declare const buildClientProviders: (providersConfiguration: OAuth2Config
|
|
|
1595
1603
|
authorizationUrl: string;
|
|
1596
1604
|
isOIDC: false;
|
|
1597
1605
|
isRefreshable: true;
|
|
1598
|
-
profileRequest: {
|
|
1599
|
-
authIn: "header";
|
|
1600
|
-
body: (config: any) => Promise<[string, any][]>;
|
|
1601
|
-
encoding: "application/x-www-form-urlencoded";
|
|
1602
|
-
method: "POST";
|
|
1603
|
-
url: string;
|
|
1604
|
-
};
|
|
1605
1606
|
refreshAccessTokenBody: {
|
|
1606
1607
|
action: string;
|
|
1607
1608
|
};
|
|
1608
1609
|
revocationRequest: {
|
|
1609
|
-
authIn: "
|
|
1610
|
-
body: (config: any) => Promise<
|
|
1610
|
+
authIn: "body";
|
|
1611
|
+
body: (config: any) => Promise<{
|
|
1612
|
+
action: string;
|
|
1613
|
+
client_id: string;
|
|
1614
|
+
nonce: string;
|
|
1615
|
+
signature: string;
|
|
1616
|
+
}>;
|
|
1611
1617
|
encoding: "application/x-www-form-urlencoded";
|
|
1612
|
-
|
|
1618
|
+
includeClientCredentials: false;
|
|
1619
|
+
inputSource: "subject";
|
|
1620
|
+
inputType: "number";
|
|
1621
|
+
tokenParamName: "userid";
|
|
1613
1622
|
url: string;
|
|
1623
|
+
validateResponse: (value: unknown) => void;
|
|
1614
1624
|
};
|
|
1615
1625
|
scopeDelimiter: string;
|
|
1616
1626
|
scopeRequired: true;
|
|
1617
1627
|
subject: string[];
|
|
1618
|
-
|
|
1628
|
+
subjectBySource: {
|
|
1629
|
+
tokenResponse: string[];
|
|
1630
|
+
};
|
|
1631
|
+
subjectType: "number";
|
|
1619
1632
|
tokenRequest: {
|
|
1620
1633
|
authIn: "body";
|
|
1621
1634
|
encoding: "application/x-www-form-urlencoded";
|
|
@@ -1765,7 +1778,7 @@ export declare const buildClientProviders: (providersConfiguration: OAuth2Config
|
|
|
1765
1778
|
url: string;
|
|
1766
1779
|
};
|
|
1767
1780
|
} & import("citra").ProviderConfig);
|
|
1768
|
-
providerInstance:
|
|
1781
|
+
providerInstance: OAuth2Client<"42" | "amazoncognito" | "anilist" | "apple" | "atlassian" | "attio" | "auth0" | "authentik" | "autodesk" | "azureadb2c" | "battlenet" | "bitbucket" | "box" | "bungie" | "calendly" | "close" | "coinbase" | "discord" | "donationalerts" | "dribbble" | "dropbox" | "epicgames" | "etsy" | "facebook" | "figma" | "gitea" | "github" | "gitlab" | "gohighlevel" | "google" | "hubspot" | "intuit" | "kakao" | "keycloak" | "kick" | "lichess" | "line" | "linear" | "linkedin" | "mastodon" | "mercadolibre" | "mercadopago" | "microsoftentraexternalid" | "microsoftentraid" | "monday" | "myanimelist" | "naver" | "notion" | "okta" | "onspark" | "osu" | "patreon" | "pipedrive" | "polar" | "polaraccesslink" | "polarteampro" | "reddit" | "roblox" | "salesforce" | "shikimori" | "slack" | "slackuser" | "spotify" | "startgg" | "strava" | "synology" | "tiktok" | "tiltify" | "tumblr" | "twitch" | "twitter" | "vk" | "withings" | "workos" | "yahoo" | "yandex" | "zoho" | "zoom">;
|
|
1769
1782
|
requiresPKCE: boolean;
|
|
1770
1783
|
scope: string[] | undefined;
|
|
1771
1784
|
searchParams: [string, string][] | undefined;
|