docs: def get(self, request):
          """
          Handles the redirect from ADFS to our site.
          We try to process the passed authorization code and login the user.
  
          Args:
              request (django.http.request.HttpRequest): A Django Request object
          """
          code = request.GET.get("code")
  
          if not code:
              # Return an error message
              return render(request, 'django_auth_adfs/login_failed.html', {
                  'error_message': "No authorization code was provided.",
              }, status=400)
  
          redirect_to = request.GET.get("state")
  
          user = authenticate(request=request, authorization_code=code)
  
          if user is not None:
              if user.is_active:
                  login(request, user)
                  # Redirect to the "after login" page.
                  # Because we got redirected from ADFS, we can't know where the
                  # user came from.
                  if redirect_to:
                      redirect_to = base64.urlsafe_b64decode(redirect_to.encode()).decode()
                  else:
                      redirect_to = django_settings.LOGIN_REDIRECT_URL
                  url_is_safe = is_safe_url(
                      url=redirect_to,
                      allowed_hosts=[request.get_host()],
                      require_https=request.is_secure(),
                  )
                  redirect_to = redirect_to if url_is_safe else '/'
                  return redirect(redirect_to)
              else:
                  # Return a 'disabled account' error message
                  return render(request, 'django_auth_adfs/login_failed.html', {
                      'error_message': "Your account is disabled.",
                  }, status=403)
          else:
              # Return an 'invalid login' error message
              return render(request, 'django_auth_adfs/login_failed.html', {
                  'error_message': "Login failed.",
              }, status=401)