verdaccio-aws-cognito
is an authentication plugin for Verdaccio.
npm install -g verdaccio-aws-cognito
auth:
aws-cognito:
userPoolId: $COGNITO_USER_POOL_ID
clientId: $COGNITO_CLIENT_ID
To log in using NPM, run:
npm adduser --registry https://your.registry.local
- When creating a new user in Cognito, you must reset the password after the first successful login. An update to the UI would be required to handle the capturing of the updated password. Possible solutions / workarounds:
- See the comment in the
AWSCognito
class to usecompleteNewPasswordChallenge
to explicitly set the password. (Not recommended for production) - Use a separate application connected to the Cognito user pool to manage users.
- See the comment in the
- Currently, the is no process for "forgot password" or "reset password".
MIT