【发布时间】:2018-10-03 20:31:18
【问题描述】:
我已使用 mozilla_django_oidc 包成功地将 Django 测试应用程序与我们的 Okta IAM 服务集成。现在我可以使用 Okta 登录了,太棒了。
但现在我想再次退出会话 - 我似乎无法做到。 mozilla_django_oidc基本提供了三个网址:
name=oidc_authentication_callback-
name=oidc_authentication_init(那个used for the "Login" link) name=oidc_logout
我只是天真地将该代码添加到我的应用程序中,并期望注销工作正常:
{% if user.is_authenticated %}
<p>{{ user.email }} - <a href="{% url 'oidc_logout' %}">Logout</a></p>
{% else %}
# etc.
{% end %}
问题是:logout 端点只接受 POST 请求。
现在,我该如何退出会话?
【问题讨论】:
标签: python openid openid-connect