List of resources for OIDC providers
Some checks failed
/ build (push) Failing after 1m8s
/ test (push) Successful in 5s

This commit is contained in:
phil 2025-01-19 14:26:54 +01:00
parent f14d8d3114
commit 54345dcafd
6 changed files with 74 additions and 32 deletions

View file

@ -50,7 +50,7 @@
<p>
These links should get different response codes depending on the authorization:
</p>
<div id="links-to-check">
<div class="links-to-check">
<a href="public">Public</a>
<a href="protected">Auth protected content</a>
<a href="protected-by-foorole">Auth + foorole protected content</a>
@ -62,6 +62,16 @@
<a href="oauth2-forgejo-test">OAuth2 test (forgejo user info)</a>
<a href="introspect">Introspect token (401 expected)</a>
</div>
{% if resources %}
<p>
Resources for this provider:
</p>
<div class="links-to-check">
{% for resource in resources %}
<a href="{{ request.url_for("get_resource", id=resource.id) }}">{{ resource.name }}</a>
{% endfor %}
</div>
{% endif %}
{% if user_info_details %}
<hr>
<div class="debug-auth">
@ -74,7 +84,7 @@
{% endfor %}
</ul>
</div>
<div>Now is: {{ now }}</div>
<div>Now is: {{ now.strftime("%T, %D") }} </div>
</div>
{% endif %}
{% endblock %}