You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example configuration suggests one could use the name attribute in the provider configuration to configure multiple providers based on keycloak, but that doesn't work, because the name property is ignored.
// keycloak
'keycloak' => [
// 'name' => 'abc', // override for multiple providers based on keycloak
'baseUrl' => 'https://keycloak_server/auth',
'realm' => 'your_master',
'applicationId' => 'your_client',
'applicationSecret' => 'your_client_uuid4_secret',
'scope' => [
'email', 'profile' // openid will be always added
],
],
These do not work, because same key cannot appear twice in an array:
return [
'redirectUri' => 'http://localhost:8000/auth/cb/${provider}/',
'provider' => [
//This is ignored, because key is not unique in array:'keycloak' => [
'name' => 'keycloak1', // override for multiple providers based on keycloak'baseUrl' => 'https://keycloak_server/auth',
//[...]
],
'keycloak' => [
'name' => 'keycloak2', // override for multiple providers based on keycloak'baseUrl' => 'https://keycloak_server2/auth',
//[...]
],
]
];
That also doesn't work, because then it is not accepted as a keycloak provider:
return [
'redirectUri' => 'http://localhost:8000/auth/cb/${provider}/',
'provider' => [
'keycloak1' => [
'name' => 'keycloak1', // override for multiple providers based on keycloak'baseUrl' => 'https://keycloak_server/auth',
//[...]
],
'keycloak2' => [
'name' => 'keycloak2', // override for multiple providers based on keycloak'baseUrl' => 'https://keycloak_server2/auth',
//[...]
],
]
];
Hey!
Issue
The example configuration suggests one could use the
name
attribute in the provider configuration to configure multiple providers based on keycloak, but that doesn't work, because thename
property is ignored.My env
PHP:
please write itLibrary: SocialConnect/Auth
Provider: Keycloak, but mostly a problem of Auth/CollectionFactory
Provider options:
These do not work, because same key cannot appear twice in an array:
That also doesn't work, because then it is not accepted as a keycloak provider:
I think what you really want is:
and then have something like this in
Auth/CollectionFactory::factory
(untested):Thanks 😺
The text was updated successfully, but these errors were encountered: