Issuer in discovery json
Signed-off-by: Juan Manuel Lallana <juan.manuel.lallana@gmail.com>
This commit is contained in:
parent
2c7afae582
commit
dbb02299ce
|
@ -198,6 +198,7 @@ class OauthApiController extends Controller {
|
||||||
public function discovery() {
|
public function discovery() {
|
||||||
$util = new Util();
|
$util = new Util();
|
||||||
return new JSONResponse([
|
return new JSONResponse([
|
||||||
|
'issuer' => $this->urlGenerator->linkToRouteAbsolute(''),
|
||||||
'authorization_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.LoginRedirector.authorize'),
|
'authorization_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.LoginRedirector.authorize'),
|
||||||
'token_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.OauthApi.getToken'),
|
'token_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.OauthApi.getToken'),
|
||||||
'userinfo_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.OauthApi.getUserInfo')
|
'userinfo_endpoint' => $this->urlGenerator->linkToRouteAbsolute('oauth2.OauthApi.getUserInfo')
|
||||||
|
|
Loading…
Reference in New Issue