client-oidc/templates/index.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2024-06-18 21:37:30 +00:00
{% extends "base.html" %}
{% block content %}
{% if not_auth_warn %}
<div class="alert alert-danger" role="alert">Not authenticated</div>
{% endif %}
{% if user_name and user_email %}
<div class="alert alert-success" role="alert">Welcome {{ user_name }} ({{ user_email }}) !</div>
{% endif %}
2024-06-18 21:37:30 +00:00
{% if paint_logout %}
{% if attributes %}
<p>You have the following attributes:</p>
<table class="table table-striped">
<thead>
<th>Name</th><th>Values</th>
</thead>
<tbody>
{% for attr in attributes %}
<tr><td>{{ attr.0 }}</td>
<td><ul class="list-unstyled">
{% for val in attr.1 %}
<li>{{ val }}</li>
{% endfor %}
</ul></td></tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="alert alert-danger" role="alert">You don't have any attributes</div>
{% endif %}
2024-06-20 10:12:05 +00:00
<a href="?slo" class="btn btn-danger">Logout</a>
2024-06-18 21:37:30 +00:00
{% else %}
2024-06-20 10:12:05 +00:00
<a href="?sso" class="btn btn-primary">Login</a>
2024-06-18 21:37:30 +00:00
{% endif %}
2024-06-25 16:53:25 +00:00
<a href="/api" class="btn btn-secondary">Call API</a>
2024-06-18 21:37:30 +00:00
{% endblock %}