From dbb02299ce4687f513dc862e79615e3033b21c61 Mon Sep 17 00:00:00 2001 From: Juan Manuel Lallana Date: Fri, 13 Mar 2020 12:47:48 -0300 Subject: [PATCH] Issuer in discovery json Signed-off-by: Juan Manuel Lallana --- apps/oauth2/lib/Controller/OauthApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/oauth2/lib/Controller/OauthApiController.php b/apps/oauth2/lib/Controller/OauthApiController.php index d3e0472e20..888c0a0db8 100644 --- a/apps/oauth2/lib/Controller/OauthApiController.php +++ b/apps/oauth2/lib/Controller/OauthApiController.php @@ -198,6 +198,7 @@ class OauthApiController extends Controller { public function discovery() { $util = new Util(); return new JSONResponse([ + 'issuer' => $this->urlGenerator->linkToRouteAbsolute(''), 'authorization_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.LoginRedirector.authorize'), 'token_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.OauthApi.getToken'), 'userinfo_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.OauthApi.getUserInfo')