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.
@@ -13,7 +13,7 @@ export default {
13
13
  const cred = getAlias(argv.alias);
14
14
 
15
15
  // Token
16
- const loginResp = await fetch(`${cred.realm}/token`, {
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(`${cred.realm}/retrieve`, {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",