You are here

public function OpenIDConnectClientBase::usesUserInfo in OpenID Connect / OAuth client 2.x

Check if the client uses the userinfo endpoint.

Return value

bool Whether the client uses the userinfo endpoint or not.

Overrides OpenIDConnectClientInterface::usesUserInfo

File

src/Plugin/OpenIDConnectClientBase.php, line 419

Class

OpenIDConnectClientBase
Base class for OpenID Connect client plugins.

Namespace

Drupal\openid_connect\Plugin

Code

public function usesUserInfo() : bool {
  return !empty($this
    ->getEndpoints()['userinfo']);
}