Display full token info
All checks were successful
/ build (push) Successful in 5s
/ test (push) Successful in 5s

This commit is contained in:
phil 2025-02-08 01:55:36 +01:00
parent 3eb6dc3dcf
commit ff72f0cae5
5 changed files with 70 additions and 31 deletions

View file

@ -97,19 +97,38 @@
</div>
{% endif %}
</div>
{% if user_info_details %}
<hr>
<div class="debug-auth">
<p>User info</p>
<ul>
{% for key, value in user_info_details.items() %}
<li>
<span class="key">{{ key }}</span>: <span class="value">{{ value }}</span>
</li>
{% if settings.show_token and id_token_parsed %}
<div class="token-info">
<hr>
<div>
<h2>id token</h2>
<div class="token">
{% for key, value in id_token_parsed.items() %}
<div>
<div class="key">{{ key }}</div>
<div class="value">{{ value }}</div>
</div>
{% endfor %}
</ul>
</div>
<h2>access token</h2>
<div class="token">
{% for key, value in access_token_parsed.items() %}
<div>
<div class="key">{{ key }}</div>
<div class="value">{{ value }}</div>
</div>
{% endfor %}
</div>
<h2>refresh token</h2>
<div class="token">
{% for key, value in refresh_token_parsed.items() %}
<div>
<div class="key">{{ key }}</div>
<div class="value">{{ value }}</div>
</div>
{% endfor %}
</div>
</div>
<div>Now is: {{ now.strftime("%T, %D") }} </div>
</div>
{% endif %}
{% endblock %}