Cosmetic
This commit is contained in:
parent
41cf615052
commit
c7478aff5f
4 changed files with 35 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue