Add Openid Authentication via Keycloak

Hello there,

I recently tried to set up openid authentication for keycloak authentification on my dolibarr but the links to create by hand in “MAIN_AUTHENTICATION_OPENID_URL” do not work and mark me after signin in with keycloak “You requested a website or a page that does not exist. »
My link seems well configured looks like :

https://MYKEYCLOAKURL/realms/MYREALM/protocol/openid-connect/auth?client_id=MYCLIENT&redirect_uri=http%3A%2F%2FMYDOLIBARR%2Fauth%2Fopenid%2Fcallback&response_type=code&scope=openid%20email&response_type=code

=> Has anyone succeeded?

Yours sincerely

Hi,

I am trying Openid against authentik, but also had no luck.

I wonder if urlencoding is needed, the documentation looks like only the redirect_uri needs to be urlencoded and the following paramters not.
But, tried nearly every combination without success

1 Like

Did you have any luck im trying to get it to work with authentik but am getting a redirect uri mismatch error