Add user self-care link & setting for supporting providers
This commit is contained in:
parent
7ab715da5a
commit
dc93c7c05b
4 changed files with 33 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue