You are here

protected function OpenIdConnectScopeRepository::getOpenIdScopes in Simple OAuth (OAuth2) & OpenID Connect 5.x

Returns fixed OpenID Connect scopes.

Return value

array A list of scope names keyed by their identifier.

2 calls to OpenIdConnectScopeRepository::getOpenIdScopes()
OpenIdConnectScopeRepository::finalizeScopes in src/OpenIdConnect/OpenIdConnectScopeRepository.php
OpenIdConnectScopeRepository::getScopeEntityByIdentifier in src/OpenIdConnect/OpenIdConnectScopeRepository.php

File

src/OpenIdConnect/OpenIdConnectScopeRepository.php, line 76

Class

OpenIdConnectScopeRepository
OpenID Connect scope repository decorator.

Namespace

Drupal\simple_oauth\OpenIdConnect

Code

protected function getOpenIdScopes() {
  $openid_scopes = [
    'openid' => $this
      ->t('User information'),
    'profile' => $this
      ->t('Profile information'),
    'email' => $this
      ->t('E-Mail'),
    'phone' => $this
      ->t('Phone'),
    'address' => $this
      ->t('Address'),
  ];
  return $openid_scopes;
}