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
I am trying to integrate Docker Registry (Distribution v3) using the docker-v2 protocol with Keycloak (version 26.4.5).
I have configured the registry to use token-based authentication, pointing to:
On the Keycloak side, I created a client with protocol docker-v2.
However, in the Client Scopes -> docker-registry-dedicated section, the only mapper available in the UI is:
docker-v2-allow-all-mapper
I added this mapper, and Keycloak does return a token when queried manually (via curl).
But during an actual docker login I have a 401 (Keycloak events say login OK)
or docker push, Docker sends two scope parameters because Keycloak is not generating any scope in the WWW-Authenticate challenge or in the token itself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to integrate Docker Registry (Distribution v3) using the docker-v2 protocol with Keycloak (version 26.4.5).
I have configured the registry to use token-based authentication, pointing to:
On the Keycloak side, I created a client with protocol
docker-v2.However, in the Client Scopes -> docker-registry-dedicated section, the only mapper available in the UI is:
I added this mapper, and Keycloak does return a token when queried manually (via curl).
But during an actual
docker loginI have a 401 (Keycloak events say login OK)or
docker push, Docker sends two scope parameters because Keycloak is not generating anyscopein the WWW-Authenticate challenge or in the token itself.As a result, Keycloak answers 400 Bad Request
Registry Auth Config
Does someone has a working stack ? If I can't manage repository scope, it's not a problem, but I need at least to be able to authenticate to push/pull
Thank you!
All reactions