From e4cb9b7ff9b7cef11f3b23f48db4fea21512506f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 20 Jun 2020 21:49:48 +0200 Subject: [PATCH] providers/saml: fix provider has no attribute sp_binding --- passbook/providers/saml/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passbook/providers/saml/views.py b/passbook/providers/saml/views.py index dbba7fa59..5b7ce4bd8 100644 --- a/passbook/providers/saml/views.py +++ b/passbook/providers/saml/views.py @@ -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,