oauth-2.0oauthkeycloakportainer

portainer keycloak 20 oauth login "unauthorized" / "Unable to login via OAuth"


I have many apps using Keycloak for authentication, but only Portainer does not work yet. I am using the custom OAuth provider configured as following:

enter image description here

With the Keycloak client setup:

enter image description here

The URLs should all be correct and taken from https://auth.mydomain.com/realms/my-realm/.well-known/openid-configuration

However, when I try to login in Portainer, I get the error message "unauthorized" and "Unable to login via OAuth". Does anyone knows what I have missed?


Solution

  • The solution was to add as User identifier: email. Only that works.