providers/oauth: remove LoginRequired from AuthorizationFlowInitView as user is redirected within

This commit is contained in:
Jens Langhammer 2020-07-25 21:36:50 +02:00
parent 72a6f9cbe0
commit ae629d1159

View file

@ -1,5 +1,4 @@
"""passbook OAuth2 Views"""
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpRequest, HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.views import View
@ -37,7 +36,7 @@ PLAN_CONTEXT_NONCE = "nonce"
PLAN_CONTEXT_SCOPE_DESCRIPTION = "scope_descriptions"
class AuthorizationFlowInitView(PolicyAccessMixin, LoginRequiredMixin, View):
class AuthorizationFlowInitView(PolicyAccessMixin, View):
"""OAuth2 Flow initializer, checks access to application and starts flow"""
# pylint: disable=unused-argument