better error message display

This commit is contained in:
Yann Esposito (Yogsototh) 2018-04-23 15:23:56 +02:00
parent 8b75b87327
commit 502eb8de0a
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
2 changed files with 17 additions and 7 deletions

View file

@ -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";

View file

@ -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 += "<a href='" + params.error_uri + "'>" + params.error_uri + "</a>";
}
$('#authorization_status').addClass('refused');
$('#oncode').hide();
} else {