prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <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
  
  </issue>
  <code>
  [start of evap/middleware.py]
  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 of evap/middleware.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: 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())
  
verification_info: {"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"}]}