diff --git a/src/User/AuthClient/Keycloak.php b/src/User/AuthClient/Keycloak.php index 42a3cd7c..52463835 100644 --- a/src/User/AuthClient/Keycloak.php +++ b/src/User/AuthClient/Keycloak.php @@ -5,6 +5,26 @@ 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 { /**