providers/app_gw: disable client authz to use passbook
This commit is contained in:
parent
8b3839343c
commit
e1bbbe6671
|
@ -15,6 +15,8 @@ class ApplicationGatewayProviderForm(forms.ModelForm):
|
||||||
self.instance.client = Client.objects.create(
|
self.instance.client = Client.objects.create(
|
||||||
client_id=generate_client_id(), client_secret=generate_client_secret()
|
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.name = self.instance.name
|
||||||
self.instance.client.response_types.set(
|
self.instance.client.response_types.set(
|
||||||
[ResponseType.objects.get_by_natural_key("code")]
|
[ResponseType.objects.get_by_natural_key("code")]
|
||||||
|
|
Reference in New Issue