From e1bbbe667133dc76219e3cb8baa021b592e70ac3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 1 Aug 2020 20:53:55 +0200 Subject: [PATCH] providers/app_gw: disable client authz to use passbook --- passbook/providers/app_gw/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/passbook/providers/app_gw/forms.py b/passbook/providers/app_gw/forms.py index 9e16fc004..a523d78d1 100644 --- a/passbook/providers/app_gw/forms.py +++ b/passbook/providers/app_gw/forms.py @@ -15,6 +15,8 @@ class ApplicationGatewayProviderForm(forms.ModelForm): self.instance.client = Client.objects.create( client_id=generate_client_id(), client_secret=generate_client_secret() ) + self.instance.client.reuse_consent = False # This is managed by passbook + self.instance.client.require_consent = False # This is managed by passbook self.instance.client.name = self.instance.name self.instance.client.response_types.set( [ResponseType.objects.get_by_natural_key("code")]