title: Django and mozilla_django_oidc - how to log out of session?
body: <p>I have successfully integrated a Django test application with our Okta IAM service, using the <code>mozilla_django_oidc</code> package. Now I can log in using Okta, which is just cool.</p>
  
  <p>But now I want to log <em>out</em> of the session again - which I cannot do it seems. <code>mozilla_django_oidc</code> provides three URLs basically:</p>
  
  <ul>
  <li><code>name=oidc_authentication_callback</code></li>
  <li><code>name=oidc_authentication_init</code> (the one <a href="https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#add-login-link-to-templates" rel="nofollow noreferrer">used for the "Login" link</a>)</li>
  <li><code>name=oidc_logout</code></li>
  </ul>
  
  <p>Naively I just added that code to my application, and expected a working logout:</p>
  
  <pre><code>{% if user.is_authenticated %}
    &lt;p&gt;{{ user.email }} - &lt;a href="{% url 'oidc_logout' %}"&gt;Logout&lt;/a&gt;&lt;/p&gt;
  {% else %}
    # etc.
  {% end %}
  </code></pre>
  
  <p>The problem is: The <code>logout</code> endpoint only takes POST requests.</p>
  
  <p>Now, how can I log out of the session?</p>