35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
{% 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 %}
|
|
|
|
<a href="/service1" class="btn btn-secondary">Call service1 API</a>
|
|
<a href="/service2" class="btn btn-secondary">Call service2 API</a>
|
|
|
|
{% endblock %}
|