You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using mozilla-django-oidc version 4.0.1 and Django 5.0.3. I get the error when I request the view from the browser. Without the oidc_logout form it works fine. I think it is really strange that oidc_authentication_init works, but oidc_logout does not.
[14/Mar/2024 07:13:46] "GET /accounts/login/ HTTP/1.1" 500 151875
Internal Server Error: /accounts/login/
Traceback (most recent call last):
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response
response = response.render()
^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render
self.content = self.rendered_content
^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content
return template.render(context, self._request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render
return self._render(context)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/base.py", line 961, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 326, in render
return nodelist.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/base.py", line 961, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 479, in render
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/urls/base.py", line 88, in reverse
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/MyUser/Programming/TestDjangoOAuth2/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 851, in _reverse_with_prefix
raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'oidc_logout' not found. 'oidc_logout' is not a valid view function or pattern name
This error message is caused by the following view:
I am using mozilla-django-oidc version 4.0.1 and Django 5.0.3. I get the error when I request the view from the browser. Without the oidc_logout form it works fine. I think it is really strange that oidc_authentication_init works, but oidc_logout does not.
This error message is caused by the following view:
The text was updated successfully, but these errors were encountered: