class IdTokenResponse extends BearerTokenResponse (View source)

Properties

protected Service $site

The site service we use to determine the issuer

protected ClaimsSetFactory $claimFactory

A factory for building claim sets

protected UserInfoRepository $userInfoRepository

A repository that we can get the active user from

Methods

__construct(Service $site, ClaimsSetFactory $claimFactory, UserInfoRepository $userInfoRepository)

No description

array
getExtraParams(AccessTokenEntityInterface $accessToken)

Get the extra params to include If this is an OIDC request we include the ID token

Token
createIdToken(AccessTokenEntityInterface $accessToken, ClaimsSet $claims)

Create an ID token to include with our response

bool
isOidcRequest(array $scopes)

Determine if this request is an OIDC requadmin past. We do this by checking if the "openid" scope is included

setApplication(Application $application)

Set the application object.

Details

__construct(Service $site, ClaimsSetFactory $claimFactory, UserInfoRepository $userInfoRepository)

No description

Parameters

Service $site
ClaimsSetFactory $claimFactory
UserInfoRepository $userInfoRepository

protected array getExtraParams(AccessTokenEntityInterface $accessToken)

Get the extra params to include If this is an OIDC request we include the ID token

Parameters

AccessTokenEntityInterface $accessToken

Return Value

array

protected Token createIdToken(AccessTokenEntityInterface $accessToken, ClaimsSet $claims)

Create an ID token to include with our response

Parameters

AccessTokenEntityInterface $accessToken
ClaimsSet $claims

Return Value

Token

protected bool isOidcRequest(array $scopes)

Determine if this request is an OIDC requadmin past. We do this by checking if the "openid" scope is included

Parameters

array $scopes

Return Value

bool

setApplication(Application $application)

Set the application object.

Parameters

Application $application