{% extends "base.html" %} {% block content %}

Test the authentication and authorization, with OpenID Connect and OAuth2 with different providers.

{% if not user %}

Log in with:

{% for provider in settings.oidc.providers %} {% else %}
There is no authentication provider defined. Hint: check the settings.yaml file.
{% endfor %}
{{ provider.name }}
{{ provider.hint }}
{% endif %} {% if user %}

Hey, {{ user.name }}

{% if user.picture %} {% endif %}
{{ user.email }}
{% if user.roles %}
Roles: {% for role in user.roles %} {{ role.name }} {% endfor %}
{% endif %}
Provider: {{ user.oidc_provider.name }}
Logout
{% endif %}

These links should get different response codes depending on the authorization:

{% if user_info_details %}

User info

Now is: {{ now }}
{% endif %} {% endblock %}