SSO login

and example env file
This commit is contained in:
2024-02-06 22:37:00 +01:00
parent aad9343569
commit d1aabd53dc
7 changed files with 40 additions and 4 deletions
+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 %}