diff --git a/infos.js b/infos.js index 7aac5d2..228f001 100644 --- a/infos.js +++ b/infos.js @@ -1,10 +1,14 @@ -var oauthServerUrl="https://visibility.amp.cisco.com/iroh/oauth2/authorize"; -var oauthServerTokenUrl="https://visibility.amp.cisco.com/iroh/oauth2/token"; -var resourceProviderTestEndpoint="https://private.intel.amp.cisco.com:443/ctia/judgement/judgement-000013f9-4d39-427e-8bbc-bf987a5d867b"; +var oauthURLPrefix="http://localhost:9001"; +var oauthServerUrl=oauthURLPrefix + "/iroh/oauth2/authorize"; +var oauthServerTokenUrl=oauthURLPrefix + "/iroh/oauth2/token"; +var resourceProviderTestEndpoint=oauthURLPrefix + "/iroh/iroh-ui-settings/whoami" ; var response_type="code"; -var client_id="client-id"; -var client_password = "password"; -var redirect_uri="http://localhost:9988/login.html"; -var scopes=["ctia"]; +var client_id="localtest"; +var client_password = "localpass"; +var redirect_uri="http://localhost:9999/login.html"; +var scopes=[ "private-intel" + , "ui-settings" + , "inexistant" + ]; var scope=scopes.join(" "); var state="whatever"; diff --git a/login.html b/login.html index 5f4534e..b237512 100644 --- a/login.html +++ b/login.html @@ -80,6 +80,12 @@ var authstatus=""; if (params.error) { authstatus = "REFUSED: " + params.error; + if (params.error_description) { + authstatus += "\n\n" + params.error_description; + } + if (params.error_uri) { + authstatus += "" + params.error_uri + ""; + } $('#authorization_status').addClass('refused'); $('#oncode').hide(); } else {