@absolutejs/auth 0.53.1 → 0.53.3

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.
@@ -1461,7 +1461,7 @@ var providers = defineProviders({
1461
1461
  }
1462
1462
  },
1463
1463
  microsoftentraid: {
1464
- authorizationUrl: (config) => `https://${config.tenantId}.b2clogin.com/${config.tenantId}/oauth2/v2.0/authorize`,
1464
+ authorizationUrl: (config) => `https://login.microsoftonline.com/${config.tenantId}/oauth2/v2.0/authorize`,
1465
1465
  isOIDC: true,
1466
1466
  isRefreshable: true,
1467
1467
  PKCEMethod: "S256",
@@ -1469,15 +1469,15 @@ var providers = defineProviders({
1469
1469
  authIn: "header",
1470
1470
  encoding: "application/json",
1471
1471
  method: "GET",
1472
- url: (config) => `https://${config.tenantId}.b2clogin.com/${config.tenantId}/openid/userinfo`
1472
+ url: "https://graph.microsoft.com/oidc/userinfo"
1473
1473
  },
1474
1474
  scopeRequired: false,
1475
- subject: ["id"],
1475
+ subject: ["sub"],
1476
1476
  subjectType: "string",
1477
1477
  tokenRequest: {
1478
1478
  authIn: "body",
1479
1479
  encoding: "application/x-www-form-urlencoded",
1480
- url: (config) => `https://${config.tenantId}.b2clogin.com/${config.tenantId}/oauth2/v2.0/token`
1480
+ url: (config) => `https://login.microsoftonline.com/${config.tenantId}/oauth2/v2.0/token`
1481
1481
  }
1482
1482
  },
1483
1483
  monday: {
@@ -1598,7 +1598,7 @@ var providers = defineProviders({
1598
1598
  }
1599
1599
  },
1600
1600
  onspark: {
1601
- authorizationUrl: "https://app.onspark.com/oauth2/authorize",
1601
+ authorizationUrl: "https://onspark.com/oauth2/authorize",
1602
1602
  email: ["email"],
1603
1603
  familyName: ["family_name"],
1604
1604
  fullName: ["name"],
@@ -1611,13 +1611,13 @@ var providers = defineProviders({
1611
1611
  authIn: "header",
1612
1612
  encoding: "application/json",
1613
1613
  method: "GET",
1614
- url: "https://app.onspark.com/oauth2/userinfo"
1614
+ url: "https://onspark.com/oauth2/userinfo"
1615
1615
  },
1616
1616
  revocationRequest: {
1617
1617
  authIn: "body",
1618
1618
  encoding: "application/x-www-form-urlencoded",
1619
1619
  tokenParamName: "token",
1620
- url: "https://app.onspark.com/oauth2/revoke"
1620
+ url: "https://onspark.com/oauth2/revoke"
1621
1621
  },
1622
1622
  scopeRequired: true,
1623
1623
  subject: ["sub"],
@@ -1625,7 +1625,7 @@ var providers = defineProviders({
1625
1625
  tokenRequest: {
1626
1626
  authIn: "body",
1627
1627
  encoding: "application/x-www-form-urlencoded",
1628
- url: "https://app.onspark.com/oauth2/token"
1628
+ url: "https://onspark.com/oauth2/token"
1629
1629
  }
1630
1630
  },
1631
1631
  osu: {
@@ -2392,10 +2392,7 @@ var getWithingsProps = async (config) => {
2392
2392
  nonceUrl.searchParams.set("timestamp", timestamp.toString());
2393
2393
  nonceUrl.searchParams.set("signature", hashedSignature);
2394
2394
  const nonceTarget = nonceUrl.toString();
2395
- const nonceResponse = await fetch(nonceTarget, {
2396
- ...h2IfHttps(nonceTarget),
2397
- method: "POST"
2398
- });
2395
+ const nonceResponse = await fetch(nonceTarget, { method: "POST" });
2399
2396
  const nonceData = await nonceResponse.json();
2400
2397
  if (nonceData.status === 0) {
2401
2398
  return {
@@ -2405,10 +2402,6 @@ var getWithingsProps = async (config) => {
2405
2402
  }
2406
2403
  return;
2407
2404
  };
2408
- var h2IfHttps = (url) => {
2409
- const init = url.startsWith("https://") ? { protocol: "http2" } : {};
2410
- return init;
2411
- };
2412
2405
  var hmacSha256 = async (message, secret) => {
2413
2406
  const encoder = new TextEncoder;
2414
2407
  const key = await crypto.subtle.importKey("raw", encoder.encode(secret), { hash: "SHA-256", name: "HMAC" }, false, ["sign"]);
@@ -3256,5 +3249,5 @@ var main = async () => {
3256
3249
  };
3257
3250
  await main();
3258
3251
 
3259
- //# debugId=E4B9B0BD4BF7B45364756E2164756E21
3252
+ //# debugId=0718F2D4349E9A5864756E2164756E21
3260
3253
  //# sourceMappingURL=migrate.js.map