providers/app_gw: fix assignment of response_types

This commit is contained in:
Jens Langhammer 2020-01-02 20:20:10 +01:00
parent 8142e3df45
commit d9ff5c69c8

View file

@ -16,9 +16,9 @@ class ApplicationGatewayProviderForm(forms.ModelForm):
client_id=generate_client_id(), client_secret=generate_client_secret()
)
self.instance.client.name = self.instance.name
self.instance.client.response_types = ResponseType.objects.get_by_natural_key(
self.instance.client.response_types.set([ResponseType.objects.get_by_natural_key(
"code"
)
)])
self.instance.client.redirect_uris = [
f"http://{self.instance.external_host}/oauth2/callback",
f"https://{self.instance.external_host}/oauth2/callback",