feat: add token introspection on sample /user/home endpoint and inject access_token into client cookie

This commit is contained in:
2024-09-08 20:47:11 +02:00
parent 436dbe1393
commit 2fc6caad1c
10 changed files with 116 additions and 18 deletions

View File

@ -1,5 +1,13 @@
{% extends "base.html" %}
{% block content %}
<h1> User Home</h1>
{% if username != "" %}
<h1>Hello <i>{{ username }}</i></h1>
{% else %}
<h1>User Home</h1>
{% endif %}
<p>Your user session is <b>{% if is_active %}active{% else %}inactive{% endif %}</b></p>
<p>Request took <b>{{ duration.as_millis() }}</b>ms</p>
{% endblock content %}