providers/oauth2: make openid-configuration easily readable

This commit is contained in:
Jens Langhammer 2020-09-19 00:32:20 +02:00
parent 5a3c1137ab
commit e75c9e9a79
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ class ProviderInfoView(View):
provider: OAuth2Provider = get_object_or_404( provider: OAuth2Provider = get_object_or_404(
OAuth2Provider, pk=application.provider_id OAuth2Provider, pk=application.provider_id
) )
response = JsonResponse(self.get_info(provider)) response = JsonResponse(
self.get_info(provider), json_dumps_params={"indent": 2}
)
response["Access-Control-Allow-Origin"] = "*" response["Access-Control-Allow-Origin"] = "*"
return response return response