We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
OpenID login button is broken in latest firefox
Behavior:
When clicking the "login" button at `https://evap.hpi.de` a request is sent to `https://evap.hpi.de/oidc/authenticate/`, which returns a 302 and redirects to `https://evap.hpi.de/?next=/oidc/authenticate/`, which has no visible difference with `https://evap.hpi.de`. After clicking the login button again I'm redirected to `https://evap.hpi.de/?next=/oidc/authenticate/%3Fnext%3D/oidc/authenticate/`

Expected Behavior:
Display the openID page and allow login

Steps to reproduce
Go to https://evap.hpi.de and click the "login" button. Browser is an up-to-date firefox on linux

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `evap/middleware.py`
Content:
```
1 from django.contrib.auth.views import redirect_to_login
2 
3 
4 class RequireLoginMiddleware:
5     def __init__(self, get_response):
6         self.get_response = get_response
7 
8     def __call__(self, request):
9         return self.get_response(request)
10 
11     @staticmethod
12     def process_view(request, view_func, _view_args, _view_kwargs):
13         # Returning None tells django to pass the request on
14         if request.user.is_authenticated:
15             return None
16 
17         if "no_login_required" in view_func.__dict__ and view_func.no_login_required:
18             return None
19 
20         return redirect_to_login(request.get_full_path())
21 
22 
23 def no_login_required(func):
24     func.no_login_required = True
25     return func
26
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/evap/middleware.py b/evap/middleware.py
--- a/evap/middleware.py
+++ b/evap/middleware.py
@@ -17,6 +17,9 @@
         if "no_login_required" in view_func.__dict__ and view_func.no_login_required:
             return None
 
+        if view_func.__name__ in ["OIDCAuthenticationRequestView", "OIDCAuthenticationCallbackView"]:
+            return None
+
         return redirect_to_login(request.get_full_path())

{"golden_diff": "diff --git a/evap/middleware.py b/evap/middleware.py\n--- a/evap/middleware.py\n+++ b/evap/middleware.py\n@@ -17,6 +17,9 @@\n         if \"no_login_required\" in view_func.__dict__ and view_func.no_login_required:\n             return None\n \n+        if view_func.__name__ in [\"OIDCAuthenticationRequestView\", \"OIDCAuthenticationCallbackView\"]:\n+            return None\n+\n         return redirect_to_login(request.get_full_path())\n", "issue": "OpenID login button is broken in latest firefox\nBehavior:\r\nWhen clicking the \"login\" button at `https://evap.hpi.de` a request is sent to `https://evap.hpi.de/oidc/authenticate/`, which returns a 302 and redirects to `https://evap.hpi.de/?next=/oidc/authenticate/`, which has no visible difference with `https://evap.hpi.de`. After clicking the login button again I'm redirected to `https://evap.hpi.de/?next=/oidc/authenticate/%3Fnext%3D/oidc/authenticate/`\r\n\r\nExpected Behavior:\r\nDisplay the openID page and allow login\r\n\r\nSteps to reproduce\r\nGo to https://evap.hpi.de and click the \"login\" button. Browser is an up-to-date firefox on linux\n", "before_files": [{"content": "from django.contrib.auth.views import redirect_to_login\n\n\nclass RequireLoginMiddleware:\n    def __init__(self, get_response):\n        self.get_response = get_response\n\n    def __call__(self, request):\n        return self.get_response(request)\n\n    @staticmethod\n    def process_view(request, view_func, _view_args, _view_kwargs):\n        # Returning None tells django to pass the request on\n        if request.user.is_authenticated:\n            return None\n\n        if \"no_login_required\" in view_func.__dict__ and view_func.no_login_required:\n            return None\n\n        return redirect_to_login(request.get_full_path())\n\n\ndef no_login_required(func):\n    func.no_login_required = True\n    return func\n", "path": "evap/middleware.py"}], "after_files": [{"content": "from django.contrib.auth.views import redirect_to_login\n\n\nclass RequireLoginMiddleware:\n    def __init__(self, get_response):\n        self.get_response = get_response\n\n    def __call__(self, request):\n        return self.get_response(request)\n\n    @staticmethod\n    def process_view(request, view_func, _view_args, _view_kwargs):\n        # Returning None tells django to pass the request on\n        if request.user.is_authenticated:\n            return None\n\n        if \"no_login_required\" in view_func.__dict__ and view_func.no_login_required:\n            return None\n\n        if view_func.__name__ in [\"OIDCAuthenticationRequestView\", \"OIDCAuthenticationCallbackView\"]:\n            return None\n\n        return redirect_to_login(request.get_full_path())\n\n\ndef no_login_required(func):\n    func.no_login_required = True\n    return func\n", "path": "evap/middleware.py"}]}