SSO login

and example env file
This commit is contained in:
mark committed 2024-02-06 22:37:00 +01:00
1 parent aad9343569
commit d1aabd53dc
7 files changed
+40 -4

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{% if user.is_authenticated %}
<p>Current user: {{ user.email }}</p>
<form action="{% url 'oidc_logout' %}" method="post">
{% csrf_token %}
<input type="submit" value="logout">
</form>
{% else %}
<a href="{% url 'oidc_authentication_init' %}">Login</a>
{% endif %}