Add user self-care link & setting for supporting providers
Some checks failed
/ build (push) Failing after 1m5s
/ test (push) Successful in 56s

This commit is contained in:
phil 2025-01-26 19:08:49 +01:00
parent 7ab715da5a
commit dc93c7c05b
4 changed files with 33 additions and 5 deletions

View file

@ -1,6 +1,6 @@
<html>
<head>
<title>FastAPI OIDC test</title>
<title>OIDC (FastAPI) test</title>
<link href="{{ url_for('static', path='/styles.css') }}" rel="stylesheet">
<script src="{{ url_for('static', path='/utils.js') }}"></script>
</head>

View file

@ -42,7 +42,10 @@
<span>Provider:</span>
{{ user.oidc_provider.name }}
</div>
<a href="logout" class="logout">Logout</a>
{% if oidc_provider_settings.account_url %}
<button onclick="location.href='{{ oidc_provider_settings.account_url }}'" class="logout">Account</button>
{% endif %}
<button onclick="location.href='{{ request.url_for("logout") }}'" class="logout">Logout</button>
</div>
{% endif %}
<hr>
@ -66,7 +69,7 @@
</p>
<div class="links-to-check">
{% for resource in resources %}
<a href="{{ request.url_for("get_resource", id=resource.id) }}">{{ resource.name }}</a>
<a href="{{ request.url_for('get_resource', id=resource.id) }}">{{ resource.name }}</a>
{% endfor %}
</div>
{% endif %}