prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  SSO base template should extend the base template
  ## What kind of an issue is this?
  
  - [x] Bug report
  
  
  ## What is the expected behaviour?
  
  The template for the SSO app should extend the base template so we don't have to maintain multiple base templates.
  
  
  ## What is the current behaviour?
  
  It's a custom template, which looks copy/pasted from the base template.
  
  
  </issue>
  <code>
  [start of apps/sso/views.py]
  1 # -*- encoding: utf-8 -*-
  2 
  3 import logging
  4 
  5 from django.contrib.auth.decorators import login_required
  6 from django.shortcuts import render
  7 from oauth2_provider.views.base import AuthorizationView as DefaultAuthorizationView  # flake8: noqa
  8 from oauth2_provider.views.base import RevokeTokenView, TokenView
  9 
  10 _log = logging.getLogger('SSO')
  11 
  12 
  13 @login_required
  14 def index(request):
  15     """
  16     This is the main SSO view
  17     """
  18 
  19     context = {}
  20 
  21     return render(request, 'sso/index.html', context)
  22 
  23 
  24 class AuthorizationView(DefaultAuthorizationView):
  25     template_name = 'sso/authorize.html'
  26
  [end of apps/sso/views.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/apps/sso/views.py b/apps/sso/views.py
  --- a/apps/sso/views.py
  +++ b/apps/sso/views.py
  @@ -18,7 +18,7 @@
   
       context = {}
   
  -    return render(request, 'sso/index.html', context)
  +    return render(request, 'sso/authorize.html', context)
   
   
   class AuthorizationView(DefaultAuthorizationView):
  
verification_info: {"golden_diff": "diff --git a/apps/sso/views.py b/apps/sso/views.py\n--- a/apps/sso/views.py\n+++ b/apps/sso/views.py\n@@ -18,7 +18,7 @@\n \n     context = {}\n \n-    return render(request, 'sso/index.html', context)\n+    return render(request, 'sso/authorize.html', context)\n \n \n class AuthorizationView(DefaultAuthorizationView):\n", "issue": "SSO base template should extend the base template\n## What kind of an issue is this?\r\n\r\n- [x] Bug report\r\n\r\n\r\n## What is the expected behaviour?\r\n\r\nThe template for the SSO app should extend the base template so we don't have to maintain multiple base templates.\r\n\r\n\r\n## What is the current behaviour?\r\n\r\nIt's a custom template, which looks copy/pasted from the base template.\r\n\n", "before_files": [{"content": "# -*- encoding: utf-8 -*-\n\nimport logging\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.shortcuts import render\nfrom oauth2_provider.views.base import AuthorizationView as DefaultAuthorizationView  # flake8: noqa\nfrom oauth2_provider.views.base import RevokeTokenView, TokenView\n\n_log = logging.getLogger('SSO')\n\n\n@login_required\ndef index(request):\n    \"\"\"\n    This is the main SSO view\n    \"\"\"\n\n    context = {}\n\n    return render(request, 'sso/index.html', context)\n\n\nclass AuthorizationView(DefaultAuthorizationView):\n    template_name = 'sso/authorize.html'\n", "path": "apps/sso/views.py"}]}