display error_uri

This commit is contained in:
Yann Esposito (Yogsototh) 2018-02-20 13:59:48 +01:00
parent 4b7b332fc2
commit 480f4ed07c
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -13,6 +13,7 @@
<a href="/index.html">← go back to main page</a> <a href="/index.html">← go back to main page</a>
<h2>Authorization Status</h2> <h2>Authorization Status</h2>
<pre class="code" id="authorization_status"></pre> <pre class="code" id="authorization_status"></pre>
<div id="error-info"></div>
<h3>State</h3> <h3>State</h3>
The process should also return the state provided. The process should also return the state provided.
<pre class="code" id="state-param"></pre> <pre class="code" id="state-param"></pre>
@ -81,6 +82,10 @@
} }
$('#authorization_status').html( authstatus ); $('#authorization_status').html( authstatus );
$('#state-param').html(params.state); $('#state-param').html(params.state);
if (params.error_uri) {
var erroruri=decodeURIComponent(params.error_uri);
$('#error-info').html("<p>You can have more informations here:</p><a href=\"" + erroruri + "\" target=\"_blank\">" + erroruri + "</a>");
}
function jwtDecode(t) { function jwtDecode(t) {
let token = {}; let token = {};