From 888bc4c0e5f834f081ecdad33b42b8f6e80e0521 Mon Sep 17 00:00:00 2001 From: Elias Luhr Date: Fri, 9 Feb 2024 14:43:51 +0100 Subject: [PATCH] Added configuration example in keycloak auth client --- src/User/AuthClient/Keycloak.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/User/AuthClient/Keycloak.php b/src/User/AuthClient/Keycloak.php index 42a3cd7..5246383 100644 --- a/src/User/AuthClient/Keycloak.php +++ b/src/User/AuthClient/Keycloak.php @@ -5,6 +5,26 @@ namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; use yii\authclient\OpenIdConnect; +/** + * Example application configuration: + * + * ```php + * 'components' => [ + * 'authClientCollection' => [ + * 'class' => 'yii\authclient\Collection', + * 'clients' => [ + * 'github' => [ + * 'class' => 'yii\authclient\clients\Keycloak', + * 'clientId' => 'keycloak_client_id', + * 'clientSecret' => 'keycloak_client_secret', + * 'issuerUrl' => 'http://keycloak/realms/your-realm', + * ], + * ], + * ] + * // ... + * ] + * ``` +*/ class Keycloak extends OpenIdConnect implements AuthClientInterface { /**