display error on webfinger failure
parent
7188a06488
commit
582c52ebf5
|
@ -80,8 +80,8 @@
|
||||||
"id-token-signing-algorithm": "ID Token Signing Algorithm",
|
"id-token-signing-algorithm": "ID Token Signing Algorithm",
|
||||||
"id-token-timeout": "ID Token Timeout",
|
"id-token-timeout": "ID Token Timeout",
|
||||||
"implicit": "implicit",
|
"implicit": "implicit",
|
||||||
"intiate-login": "Intiate Login",
|
"initiate-login": "Initiate Login",
|
||||||
"intiate-login-help": "URL to initiate login on the client",
|
"initiate-login-help": "URL to initiate login on the client",
|
||||||
"introspection": "Introspection",
|
"introspection": "Introspection",
|
||||||
"jwk-set": "JWK Set",
|
"jwk-set": "JWK Set",
|
||||||
"jwk-set-help": "URL for the client's JSON Web Key set",
|
"jwk-set-help": "URL for the client's JSON Web Key set",
|
||||||
|
@ -358,7 +358,9 @@
|
||||||
"issuers": "Issuers",
|
"issuers": "Issuers",
|
||||||
"claim": "Claim",
|
"claim": "Claim",
|
||||||
"value": "Value"
|
"value": "Value"
|
||||||
}
|
},
|
||||||
|
"webfinger-error": "Error",
|
||||||
|
"webfinger-error-description": "The server was unable to find an identity provider for <code>__email__</code>."
|
||||||
},
|
},
|
||||||
"copyright": "Powered by <a href=\"https://github.com/mitreid-connect/\">MITREid Connect <span class=\"label\">{0}</span></a> <span class=\"pull-right\">© 2015 The MITRE Corporation and MIT KIT.</span>.",
|
"copyright": "Powered by <a href=\"https://github.com/mitreid-connect/\">MITREid Connect <span class=\"label\">{0}</span></a> <span class=\"pull-right\">© 2015 The MITRE Corporation and MIT KIT.</span>.",
|
||||||
"about": {
|
"about": {
|
||||||
|
|
|
@ -315,7 +315,17 @@ var ClaimListView = Backbone.View.extend({
|
||||||
_self.render();
|
_self.render();
|
||||||
|
|
||||||
}).error(function(jqXHR, textStatus, errorThrown) {
|
}).error(function(jqXHR, textStatus, errorThrown) {
|
||||||
console.log(errorThrown);
|
console.log("An error occurred when doing a webfinger lookup", errorThrown);
|
||||||
|
|
||||||
|
//Display an alert with an error message
|
||||||
|
$('#modalAlert div.modal-header').html($.t('policy.webfinger-error'));
|
||||||
|
$('#modalAlert div.modal-body').html($.t('policy.webfinger-error-description', {email: email}));
|
||||||
|
|
||||||
|
$("#modalAlert").modal({ // wire up the actual modal functionality and show the dialog
|
||||||
|
"backdrop" : "static",
|
||||||
|
"keyboard" : true,
|
||||||
|
"show" : true // ensure the modal is shown immediately
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue