Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Keycloak as a new Auth Client #537

Merged
merged 5 commits into from
Feb 9, 2024
Merged

Conversation

eluhr
Copy link
Contributor

@eluhr eluhr commented Feb 9, 2024

Q A
Is bugfix? no
New feature? yes
Breaks BC? no
Tests pass? yes
Fixed issues -

With this pull request I have added a new Auth Client for Keycloak. Here is an example of how it can be configured:

// ... 
'components' => [
    // ...
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'facebook' => [
                'class' => 'Da\User\AuthClient\Keycloak',
                'clientId' => 'keycloak_client_id',
                'clientSecret' => 'keycloak_client_secret',
                'issuerUrl' => 'http://keycloak/realms/your-realm'
            ]
        ]
    ]
]

@maxxer
Copy link
Collaborator

maxxer commented Feb 9, 2024

If you don't mind, I'd add the configuration example in the class comments itself, to avoid having it lost in this PR

@eluhr
Copy link
Contributor Author

eluhr commented Feb 9, 2024

I've just added it

@maxxer maxxer merged commit bb917cd into 2amigos:master Feb 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants