diff options
author | Gar <gar+gh@danger.computer> | 2022-09-21 23:07:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 23:07:30 +0300 |
commit | 314311c61b8f341715c168199d52976ee3237077 (patch) | |
tree | 18ce4d66ecf0a73ba974f1ed1ccf3c032fb7cd72 /LICENSE | |
parent | d3ff2aa9b57d7448c5770ba307118ce4c3b6a888 (diff) |
feat: separate login/adduser, remove auth types (#5550)
The difference between `adduser` and `login` depends on the `auth-type`.
- `web`: the POST to `/-/v1/login` contains a `{ create: true }` value
in its payload for `adduser`
- `legacy` the `PUT` request to `/-/user/org.couchdb.user:${username}`
contains an `email` value in its payload for `adduser`.
BREAKING CHANGE: `login`, `adduser`, and `auth-type` changes
- This removes all `auth-type` configs except `web` and `legacy`.
- `login` and `adduser` are now separate commands that send different data to the registry.
- `auth-type` config values `web` and `legacy` only try
their respective methods, npm no longer tries them all and waits to see
which one doesn't fail.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions