better error message display
This commit is contained in:
parent
8b75b87327
commit
502eb8de0a
2 changed files with 17 additions and 7 deletions
18
infos.js
18
infos.js
|
@ -1,10 +1,14 @@
|
||||||
var oauthServerUrl="https://visibility.amp.cisco.com/iroh/oauth2/authorize";
|
var oauthURLPrefix="http://localhost:9001";
|
||||||
var oauthServerTokenUrl="https://visibility.amp.cisco.com/iroh/oauth2/token";
|
var oauthServerUrl=oauthURLPrefix + "/iroh/oauth2/authorize";
|
||||||
var resourceProviderTestEndpoint="https://private.intel.amp.cisco.com:443/ctia/judgement/judgement-000013f9-4d39-427e-8bbc-bf987a5d867b";
|
var oauthServerTokenUrl=oauthURLPrefix + "/iroh/oauth2/token";
|
||||||
|
var resourceProviderTestEndpoint=oauthURLPrefix + "/iroh/iroh-ui-settings/whoami" ;
|
||||||
var response_type="code";
|
var response_type="code";
|
||||||
var client_id="client-id";
|
var client_id="localtest";
|
||||||
var client_password = "password";
|
var client_password = "localpass";
|
||||||
var redirect_uri="http://localhost:9988/login.html";
|
var redirect_uri="http://localhost:9999/login.html";
|
||||||
var scopes=["ctia"];
|
var scopes=[ "private-intel"
|
||||||
|
, "ui-settings"
|
||||||
|
, "inexistant"
|
||||||
|
];
|
||||||
var scope=scopes.join(" ");
|
var scope=scopes.join(" ");
|
||||||
var state="whatever";
|
var state="whatever";
|
||||||
|
|
|
@ -80,6 +80,12 @@
|
||||||
var authstatus="";
|
var authstatus="";
|
||||||
if (params.error) {
|
if (params.error) {
|
||||||
authstatus = "REFUSED: " + params.error;
|
authstatus = "REFUSED: " + params.error;
|
||||||
|
if (params.error_description) {
|
||||||
|
authstatus += "\n\n" + params.error_description;
|
||||||
|
}
|
||||||
|
if (params.error_uri) {
|
||||||
|
authstatus += "<a href='" + params.error_uri + "'>" + params.error_uri + "</a>";
|
||||||
|
}
|
||||||
$('#authorization_status').addClass('refused');
|
$('#authorization_status').addClass('refused');
|
||||||
$('#oncode').hide();
|
$('#oncode').hide();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue