From 0c2dc309e79b17696c4e4bee021fc25db990ce41 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 18 Feb 2020 20:14:28 +0100 Subject: [PATCH] providers/saml: fix metadata URLs using incorrect params --- passbook/providers/saml/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passbook/providers/saml/views.py b/passbook/providers/saml/views.py index 94c8acc78..a065e1805 100644 --- a/passbook/providers/saml/views.py +++ b/passbook/providers/saml/views.py @@ -225,13 +225,13 @@ class DescriptorDownloadView(AccessRequiredView): slo_url = request.build_absolute_uri( reverse( "passbook_providers_saml:saml-logout", - kwargs={"application": provider.application}, + kwargs={"application": provider.application.slug}, ) ) sso_url = request.build_absolute_uri( reverse( "passbook_providers_saml:saml-login", - kwargs={"application": provider.application}, + kwargs={"application": provider.application.slug}, ) ) pubkey = strip_pem_header(provider.signing_cert.replace("\r", "")).replace(