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
How Verdaccio actually check if user is authorized if auth plugin is in use? And why legacy tokens are not working with auth plugin, but works without?
Debug
Case 1 (using JWT, Legacy, verdaccio-github-oauth-ui)
Auth using verdaccio-github-oauth-ui plugin:
> npx verdaccio-github-oauth-ui --registry http://localhost:4873/
[github-oauth-ui] Version: [email protected]
[github-oauth-ui] Running command: npm config list --json
[github-oauth-ui] Running command: npm config set //localhost:4873/:_authToken "===JWT TOKEN HERE==="
[github-oauth-ui] All done! We've updated your npm configuration.npm whoami --registry=http://localhost:4873/=== my Github loging returned ===
While old Legacy tokens, that were created with old version of Verdaccio not working.
Case 2 (Legacy, verdaccio-github-oauth-ui, NO JWT)
Auth using verdaccio-github-oauth-ui plugin:
> npx verdaccio-github-oauth-ui --registry http://localhost:4873/
[github-oauth-ui] Version: [email protected]
[github-oauth-ui] Running command: npm config list --json
[github-oauth-ui] Running command: npm config set //localhost:4873/:_authToken "===legacy-token-here==="
[github-oauth-ui] All done! We've updated your npm configuration.> npm whoami --registry=http://localhost:4873/npm ERR! code ENEEDAUTHnpm ERR! need auth This command requires you to be logged in.npm ERR! need auth You need to authorize this machine using `npm adduser`
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
-
Good day,
I'm migrating my Verdaccio from
5.3.2
to5.26.1
My config.yaml:
Question
How Verdaccio actually check if user is authorized if auth plugin is in use? And why legacy tokens are not working with auth plugin, but works without?
Debug
Case 1 (using JWT, Legacy, verdaccio-github-oauth-ui)
Auth using
verdaccio-github-oauth-ui
plugin:While old Legacy tokens, that were created with old version of Verdaccio not working.
Case 2 (Legacy, verdaccio-github-oauth-ui, NO JWT)
Auth using
verdaccio-github-oauth-ui
plugin:So despite that authentication where successful:
I still cannot auth
Case 3 (Legacy, no auth plugin, no JWT)
Creating new user:
Beta Was this translation helpful? Give feedback.
All reactions