providers/saml: fix provider has no attribute sp_binding

This commit is contained in:
Jens Langhammer 2020-06-20 21:49:48 +02:00
parent a0f05caf8e
commit e4cb9b7ff9

View file

@ -188,7 +188,9 @@ class SAMLFlowFinalView(StageView):
def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
application: Application = self.executor.plan.context[PLAN_CONTEXT_APPLICATION]
provider: SAMLProvider = application.provider
provider: SAMLProvider = get_object_or_404(
SAMLProvider, pk=application.provider_id
)
# Log Application Authorization
Event.new(
EventAction.AUTHORIZE_APPLICATION,