Issuer in discovery json

Signed-off-by: Juan Manuel Lallana <juan.manuel.lallana@gmail.com>
This commit is contained in:
Juan Manuel Lallana 2020-03-13 12:47:48 -03:00
parent 2c7afae582
commit dbb02299ce
1 changed files with 1 additions and 0 deletions

View File

@ -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')