You are here

public function OpenIDConnectGenericClient::defaultConfiguration in OpenID Connect / OAuth client 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/OpenIDConnectClient/OpenIDConnectGenericClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectGenericClient::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides OpenIDConnectClientBase::defaultConfiguration

File

src/Plugin/OpenIDConnectClient/OpenIDConnectGenericClient.php, line 24

Class

OpenIDConnectGenericClient
Generic OAuth 2.0 OpenID Connect client.

Namespace

Drupal\openid_connect\Plugin\OpenIDConnectClient

Code

public function defaultConfiguration() : array {
  return [
    'issuer_url' => '',
    'authorization_endpoint' => 'https://example.com/oauth2/authorize',
    'token_endpoint' => 'https://example.com/oauth2/token',
    'userinfo_endpoint' => 'https://example.com/oauth2/userinfo',
    'end_session_endpoint' => '',
    'scopes' => [
      'openid',
      'email',
    ],
  ] + parent::defaultConfiguration();
}