You are here

public function KeycloakService::getSessionInfoDefaultKeys in Keycloak OpenID Connect 8

Return an array of available Keycloak session info keys.

Return value

array Keycloak session info keys.

Overrides KeycloakServiceInterface::getSessionInfoDefaultKeys

2 calls to KeycloakService::getSessionInfoDefaultKeys()
KeycloakService::getSessionInfo in src/Service/KeycloakService.php
Return an associative array of Keycloak session information.
KeycloakService::setSessionInfo in src/Service/KeycloakService.php
Store the Keycloak session information to the user session.

File

src/Service/KeycloakService.php, line 146

Class

KeycloakService
Keycloak service.

Namespace

Drupal\keycloak\Service

Code

public function getSessionInfoDefaultKeys() {
  if (!isset(self::$sessionInfoKeys)) {
    $default_keys = [
      self::KEYCLOAK_SESSION_ACCESS_TOKEN,
      self::KEYCLOAK_SESSION_REFRESH_TOKEN,
      self::KEYCLOAK_SESSION_ID_TOKEN,
      self::KEYCLOAK_SESSION_CLIENT_ID,
      self::KEYCLOAK_SESSION_SESSION_ID,
    ];
    self::$sessionInfoKeys = $default_keys;
  }
  return self::$sessionInfoKeys;
}