Merge branch '28-openid-connect-discovery' into 'master'

set issuer to root address instead of well-known path

Closes #28

See merge request BeryJu.org/passbook!13
This commit is contained in:
Jens Langhammer 2019-03-18 19:52:13 +00:00
commit ee05834b69

View file

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