Verdaccio authentication plugin for OpenID Connect. When installed, npm login --registry ...
command will open the browser to start login flow.
npm i -g verdaccio-openid-connect
auth:
openid-connect:
# Verdaccio public URL. If served on a subpath, make sure to include a
# trailing slash.
publicUrl: http://localhost:4873/
# Redis hostname
redisUri: redis
# OpenID Connect Issuer URL
issuer: https://keycloak/auth/realms/MyRealm/
# OpenID Connect Client ID
clientId: verdaccio
# OpenID Connect Client Secret
clientSecret: '...'
# Optional id_token claim that will be used for username
usernameClaim: preferred_username
OpenID Connect Client must be configured to allow ${publicUrl}/oidc/callback
as a redirect URI.