From 2b8bb23b95efbff23abbd3fcc4b379c306da37d3 Mon Sep 17 00:00:00 2001 From: Jacek Kolasa Date: Tue, 17 Sep 2019 11:18:49 +0200 Subject: changed naming for redirect_uri param (#6663) * naming changes for redirect to the console after sign-in from nodes-view click: redirectUrl > redirect_uri in query params for cloud sign-in call redirectUrl > redirectUri in response object from iframe's window.parent.postMessage * redirectUri => redirectURI from cloud's `postMessage` --- web/gui/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web') diff --git a/web/gui/main.js b/web/gui/main.js index fa7b4bedc7..1f941d47b8 100644 --- a/web/gui/main.js +++ b/web/gui/main.js @@ -725,7 +725,7 @@ function openAuthenticatedUrl(url) { if (isSignedIn()) { window.open(url); } else { - window.open(`${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&name=${encodeURIComponent(NETDATA.registry.hostname)}&origin=${encodeURIComponent(window.location.origin + "/")}&redirectUrl=${encodeURIComponent(window.location.origin + "/" + url)}`); + window.open(`${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&name=${encodeURIComponent(NETDATA.registry.hostname)}&origin=${encodeURIComponent(window.location.origin + "/")}&redirect_uri=${encodeURIComponent(window.location.origin + "/" + url)}`); } } @@ -4955,8 +4955,8 @@ function handleSignInMessage(e) { cloudToken = e.data.token; netdataRegistryCallback(registryAgents); - if (e.data.redirectUrl) { - window.location.replace(e.data.redirectUrl); + if (e.data.redirectURI) { + window.location.replace(e.data.redirectURI); } } -- cgit v1.2.3