tenneo-auth-plugin 1.0.3 → 1.0.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/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1265,7 +1265,7 @@ async function refreshAccessToken() {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
throw new Error("Cannot refresh token: missing required data");
|
|
1267
1267
|
}
|
|
1268
|
-
const apiAuthBaseUrl = Config.
|
|
1268
|
+
const apiAuthBaseUrl = Config.getAuthServerUrl();
|
|
1269
1269
|
const tokenUrl = `${apiAuthBaseUrl}/oauth/refresh`;
|
|
1270
1270
|
const body = new URLSearchParams({
|
|
1271
1271
|
grant_type: DEFAULT_REFRESH_GRANT_TYPE,
|
|
@@ -1438,6 +1438,14 @@ async function initiateAuthFlow(config) {
|
|
|
1438
1438
|
scopes: config?.client?.scopes,
|
|
1439
1439
|
hasRuntime: !!getAuthRuntime()
|
|
1440
1440
|
});
|
|
1441
|
+
logger.info("[initiateAuthFlow] authServerUrl for OAuth", {
|
|
1442
|
+
authServerFromProps: authServerFromProps || null,
|
|
1443
|
+
authServerEffective,
|
|
1444
|
+
redirectUriEffective,
|
|
1445
|
+
tenantId: tenantIdEffective,
|
|
1446
|
+
tenantKey: config.tenantKey ?? null,
|
|
1447
|
+
clientIdEffective
|
|
1448
|
+
});
|
|
1441
1449
|
const token = getAccessToken();
|
|
1442
1450
|
if (token && !isAccessTokenExpired()) {
|
|
1443
1451
|
logger.debug("Valid token already exists, skipping auth flow");
|