Open Eoras opened 6 months ago
Until v19 of keycloak this work fine, but at v20 of keycloak this don't work.
@Eoras add "openid" to the scope and it will works (I struggled on it)
@aless673 where do you change the scope ?
@aless673 where do you change the scope ?
I do it in my custom authenticator
#[Override]
public function start(Request $request, AuthenticationException $authException = null): RedirectResponse
{
return $this->getClient()->redirect(['openid', 'email', 'profile'], []);
}
Ok thanks,
Finally just specify the version in the conf yaml file worked for me
Hi, when i'm trying to fetUserFromToken, i got an error :
Invalid response received from Authorization Server. Expected JSON.
My token is valid before :
I use Keycloak 23.0.7 with Docker with this conf :
I use WAMP last version on windows with php 8.3.2
I use Symfony 7.0 with : stevenmaguire/oauth2-keycloak v5.1.0 knpuniversity/oauth2-client-bundle v2.18.1
I think something wrong, with other project with same configuration but with Keycloak 16.1 this work fine.
I change the keycloak server url and removed /auth (v18 of keycloak)
I've got the redirect to login screen, i can login, but after when i'm back to symfony on my authenticate function from my Authenticator, i can't fetchUserFromToken.
Someone can help me ?
thank