This commit is contained in:
phil 2025-01-10 19:03:09 +01:00
parent 41cf615052
commit c7478aff5f
4 changed files with 35 additions and 21 deletions

View file

@ -1,15 +1,19 @@
{% extends "base.html" %}
{% block content %}
<p class="center">
Test the authentication and authorization of FastAPI web based applications
with OpenID Connect and OAuth2 with different providers.
</p>
{% if not user %}
<div class="login-box">
<p>Log in with one of these authentication providers:</p>
<div class="login-toolbox">
{% for provider in settings.oidc.providers %}
<a href="login/{{ provider.id }}">{{ provider.name }}</a>
{% else %}
<span class="error">There is no authentication provider defined.
Hint: check the settings.yaml file.</span>
{% endfor %}
<p>Log in with one of these authentication providers:</p>
{% for provider in settings.oidc.providers %}
<a href="login/{{ provider.id }}">{{ provider.name }}</a>
{% else %}
<span class="error">There is no authentication provider defined.
Hint: check the settings.yaml file.</span>
{% endfor %}
</div>
</div>
{% endif %}
@ -35,6 +39,7 @@
<a href="logout" class="logout">Logout</a>
</div>
{% endif %}
<hr>
<div class="content">
<p>
These links should get different response codes depending on the authorization: