display error_uri
This commit is contained in:
parent
4b7b332fc2
commit
480f4ed07c
1 changed files with 5 additions and 0 deletions
|
@ -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 = {};
|
||||||
|
|
Loading…
Reference in a new issue