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 "Create New User" form requires a password to be set, but for the OIDC (keycloak) backend, this is not a required field as the password in this use case is not managed via Horreum
The text was updated successfully, but these errors were encountered:
Hi @johnaohara,
I was looking at this as I had to create a new User when using SSO as keycloak backen service and I have a couple of comments:
but for the OIDC (keycloak) backend, this is not a required field as the password in this use case is not managed via Horreum
That's not actually true because it depends on the horreum.roles.provider configuration and keycloak url, i.e.,,
OIDC enabled, horreum.roles.provider=keycloak --> we are sending the provided temporary pwd to the backend keycloak when creating the user there (so here Horreum is actually using the provided pwd)
OIDC enabled, horreum.roles.provider=database --> we are not creating the user on the Keycloak, so the pwd is not used
OIDC disabled, horreum.roles.provider=database (basic auth) --> here the pwd is required, but it is not actually temporary as there is no way to change it from UI
Proposal
If OIDC is enabled, let's mark the pwd as NOT required - then it would be up to the admin to decide whether set it or not in according to the real configuration (based on horreum.roles.provider) - then the backend when creating the user (if provider set to keycloak) will create the pwd if and only if is is not null/empty.
Alternative solution
Expose the horreum.roles.provider in the /api/config/keycloak and rely on that value as well to mark the pwd as required or completely remove it
Describe the bug
The "Create New User" form requires a password to be set, but for the OIDC (keycloak) backend, this is not a required field as the password in this use case is not managed via Horreum
The text was updated successfully, but these errors were encountered: