set issuer to root address instead of well-known path

This commit is contained in:
Jens Langhammer 2019-03-18 20:42:32 +01:00
parent c9f73d718e
commit fccc8f4959
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class OpenIDConfigurationView(View):
def get(self, request: HttpRequest): def get(self, request: HttpRequest):
"""Get Response conform to https://openid.net/specs/openid-connect-discovery-1_0.html""" """Get Response conform to https://openid.net/specs/openid-connect-discovery-1_0.html"""
return JsonResponse({ return JsonResponse({
'issuer': request.build_absolute_uri(), 'issuer': request.build_absolute_uri(reverse('passbook_core:overview')),
'authorization_endpoint': request.build_absolute_uri( 'authorization_endpoint': request.build_absolute_uri(
reverse('passbook_oauth_provider:oauth2-authorize')), reverse('passbook_oauth_provider:oauth2-authorize')),
'token_endpoint': request.build_absolute_uri(reverse('passbook_oauth_provider:token')), 'token_endpoint': request.build_absolute_uri(reverse('passbook_oauth_provider:token')),