public function KeycloakService::getEndpoints in Keycloak OpenID Connect 8
Return the available Keycloak endpoints.
Return value
array Associative array with Keycloak endpoints:
- authorization: Authorization endpoint.
- token: Token endpoint.
- userinfo: User info endpoint.
- end_session: End session endpoint.
- session_iframe: Session iframe URL.
Overrides KeycloakServiceInterface::getEndpoints
File
- src/
Service/ KeycloakService.php, line 117
Class
- KeycloakService
- Keycloak service.
Namespace
Drupal\keycloak\ServiceCode
public function getEndpoints() {
$base = $this
->getBaseUrl() . '/realms/' . $this
->getRealm();
return [
'authorization' => $base . self::KEYCLOAK_AUTH_ENDPOINT_URI,
'token' => $base . self::KEYCLOAK_TOKEN_ENDPOINT_URI,
'userinfo' => $base . self::KEYCLOAK_USERINFO_ENDPOINT_URI,
'end_session' => $base . self::KEYCLOAK_END_SESSION_ENDPOINT_URI,
'session_iframe' => $base . self::KEYCLOAK_CHECK_SESSION_IFRAME_URI,
];
}