multicloud_rule_manager 1.0.2 → 1.0.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.
- package/commands/retrieve.js +3 -2
- package/package.json +1 -1
package/commands/retrieve.js
CHANGED
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
const cred = getAlias(argv.alias);
|
|
14
14
|
|
|
15
15
|
// Token
|
|
16
|
-
const loginResp = await fetch(
|
|
16
|
+
const loginResp = await fetch(`https://login-eon-no-prod.bit2win.cloud/auth/realms/${cred.realm}/protocol/openid-connect/token`, {
|
|
17
17
|
method: "POST",
|
|
18
18
|
headers: { "Content-Type": "application/json" },
|
|
19
19
|
body: JSON.stringify({
|
|
@@ -28,7 +28,8 @@ export default {
|
|
|
28
28
|
if (!access_token) throw new Error("Token non ricevuto");
|
|
29
29
|
|
|
30
30
|
// Retrieve
|
|
31
|
-
const apiResp = await fetch(
|
|
31
|
+
const apiResp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules/`, {
|
|
32
|
+
method: "GET",
|
|
32
33
|
headers: { Authorization: `Bearer ${access_token}` }
|
|
33
34
|
});
|
|
34
35
|
|