Skip to content

Commit

Permalink
Added configuration example in keycloak auth client
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Feb 9, 2024
1 parent 6056be8 commit 888bc4c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/User/AuthClient/Keycloak.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/**
Expand Down

0 comments on commit 888bc4c

Please sign in to comment.