@absolutejs/auth 0.53.2 → 0.53.4
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/cli/migrate.js +30 -9
- package/dist/cli/migrate.js.map +3 -3
- package/dist/htmx/index.js +37 -22
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +37 -22
- package/dist/index.js.map +3 -3
- package/dist/manifest.js +14 -3
- package/dist/manifest.js.map +3 -3
- package/dist/manifest.json +18 -18
- package/dist/providers/clients.d.ts +29 -3
- package/dist/providers/index.js +37 -22
- package/dist/providers/index.js.map +3 -3
- package/package.json +2 -2
package/dist/cli/migrate.js
CHANGED
|
@@ -722,6 +722,20 @@ var providers = defineProviders({
|
|
|
722
722
|
url: "https://developer.api.autodesk.com/authentication/v2/token"
|
|
723
723
|
}
|
|
724
724
|
},
|
|
725
|
+
azureadb2c: {
|
|
726
|
+
authorizationUrl: (config) => `https://${config.tenantSubdomain}.b2clogin.com/${config.tenantSubdomain}.onmicrosoft.com/${config.policy}/oauth2/v2.0/authorize`,
|
|
727
|
+
isOIDC: true,
|
|
728
|
+
isRefreshable: true,
|
|
729
|
+
PKCEMethod: "S256",
|
|
730
|
+
scopeRequired: false,
|
|
731
|
+
subject: ["sub"],
|
|
732
|
+
subjectType: "string",
|
|
733
|
+
tokenRequest: {
|
|
734
|
+
authIn: "body",
|
|
735
|
+
encoding: "application/x-www-form-urlencoded",
|
|
736
|
+
url: (config) => `https://${config.tenantSubdomain}.b2clogin.com/${config.tenantSubdomain}.onmicrosoft.com/${config.policy}/oauth2/v2.0/token`
|
|
737
|
+
}
|
|
738
|
+
},
|
|
725
739
|
battlenet: {
|
|
726
740
|
authorizationUrl: "https://oauth.battle.net/authorize",
|
|
727
741
|
isOIDC: true,
|
|
@@ -1460,6 +1474,20 @@ var providers = defineProviders({
|
|
|
1460
1474
|
url: "https://api.mercadopago.com/oauth/token"
|
|
1461
1475
|
}
|
|
1462
1476
|
},
|
|
1477
|
+
microsoftentraexternalid: {
|
|
1478
|
+
authorizationUrl: (config) => `https://${config.tenantSubdomain}.ciamlogin.com/${config.tenantId}/oauth2/v2.0/authorize`,
|
|
1479
|
+
isOIDC: true,
|
|
1480
|
+
isRefreshable: true,
|
|
1481
|
+
PKCEMethod: "S256",
|
|
1482
|
+
scopeRequired: false,
|
|
1483
|
+
subject: ["sub"],
|
|
1484
|
+
subjectType: "string",
|
|
1485
|
+
tokenRequest: {
|
|
1486
|
+
authIn: "body",
|
|
1487
|
+
encoding: "application/x-www-form-urlencoded",
|
|
1488
|
+
url: (config) => `https://${config.tenantSubdomain}.ciamlogin.com/${config.tenantId}/oauth2/v2.0/token`
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1463
1491
|
microsoftentraid: {
|
|
1464
1492
|
authorizationUrl: (config) => `https://login.microsoftonline.com/${config.tenantId}/oauth2/v2.0/authorize`,
|
|
1465
1493
|
isOIDC: true,
|
|
@@ -2392,10 +2420,7 @@ var getWithingsProps = async (config) => {
|
|
|
2392
2420
|
nonceUrl.searchParams.set("timestamp", timestamp.toString());
|
|
2393
2421
|
nonceUrl.searchParams.set("signature", hashedSignature);
|
|
2394
2422
|
const nonceTarget = nonceUrl.toString();
|
|
2395
|
-
const nonceResponse = await fetch(nonceTarget, {
|
|
2396
|
-
...h2IfHttps(nonceTarget),
|
|
2397
|
-
method: "POST"
|
|
2398
|
-
});
|
|
2423
|
+
const nonceResponse = await fetch(nonceTarget, { method: "POST" });
|
|
2399
2424
|
const nonceData = await nonceResponse.json();
|
|
2400
2425
|
if (nonceData.status === 0) {
|
|
2401
2426
|
return {
|
|
@@ -2405,10 +2430,6 @@ var getWithingsProps = async (config) => {
|
|
|
2405
2430
|
}
|
|
2406
2431
|
return;
|
|
2407
2432
|
};
|
|
2408
|
-
var h2IfHttps = (url) => {
|
|
2409
|
-
const init = url.startsWith("https://") ? { protocol: "http2" } : {};
|
|
2410
|
-
return init;
|
|
2411
|
-
};
|
|
2412
2433
|
var hmacSha256 = async (message, secret) => {
|
|
2413
2434
|
const encoder = new TextEncoder;
|
|
2414
2435
|
const key = await crypto.subtle.importKey("raw", encoder.encode(secret), { hash: "SHA-256", name: "HMAC" }, false, ["sign"]);
|
|
@@ -3256,5 +3277,5 @@ var main = async () => {
|
|
|
3256
3277
|
};
|
|
3257
3278
|
await main();
|
|
3258
3279
|
|
|
3259
|
-
//# debugId=
|
|
3280
|
+
//# debugId=C531C2A7A3FFA37664756E2164756E21
|
|
3260
3281
|
//# sourceMappingURL=migrate.js.map
|