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:
With the Keycloak client setup:
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?
The solution was to add as User identifier: email
. Only that works.