client-oidc/templates/index.html

34 lines
1.1 KiB
HTML
Raw Normal View History

2024-06-18 21:37:30 +00:00
{% extends "base.html" %}
{% block content %}
2024-06-26 18:10:40 +00:00
{% if auth_error %}
<div class="alert alert-danger" role="alert">Not authenticated: {{ auth_error }}</div>
{% else %}
{% if userinfo_name and userinfo_email %}
<div class="alert alert-success" role="alert">Welcome {{ userinfo_name }} ({{ userinfo_email }}) !</div>
{% endif %}
{% if token_data %}
<table class="table table-striped">
<thead>
<th>Name</th><th>Values</th>
</thead>
<tbody>
{% for key in token_data %}
<tr>
<td>{{ key }}</td>
<td>{{ token_data[key] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="?slo" class="btn btn-danger">Logout</a>
{% else %}
<a href="?sso" class="btn btn-primary">Login</a>
{% endif %}
{% endif %}
2024-06-26 18:10:40 +00:00
<a href="/api" class="btn btn-secondary">Call API</a>
2024-06-26 18:10:40 +00:00
{% endblock %}