Closed ghost closed 5 years ago
Fixed in https://github.com/n4bb12/verdaccio-github-oauth-ui/releases/tag/1.7.3 🎉
The plugin now passes null
as error when authentication fails. It looks like the error paramter is reserved for non-recoverable errors and is not intended to be used for authentication feedback.
Thanks for reporting and for the hint!
Please be aware that the UI login form is modified by this plugin and there is currently no way of logging in on the UI with username and password using this plugin.
Bug Report
Versions
Expected behavior
If Github cannot authenticate the user, Verdaccio should try the next configured authentication plug-in.
Observed behaviour
This plug-in raises an error and the user is denied access despite having valid htpasswd credentials.
Steps to reproduce
My diagnosis
A quick scan of the code leads me to suspect that calls to GithubOauthUiPlugin.denied should be replaced with 'null' values.