passbolt / passbolt_api

Passbolt Community Edition (CE) API. The JSON API for the open source password manager for teams!
https://passbolt.com
GNU Affero General Public License v3.0
4.63k stars 306 forks source link

Link "Or switch to another account." leads to a recovery page instead of login page for another user #430

Closed gvlasov closed 2 years ago

gvlasov commented 2 years ago

What you did

When logging in on page /auth/login?locale=en-UK as a user I previously created, I clicked "Or switch to another account"

What happened

I got to a user recovery page /users/recover?locale=en-UK

What you expected to happen

I expected to get to a login page for another user. I need to access passbolt as various users and don't expect to recover accounts whenever I want to switch users. If that's the intended behavior for some reason, maybe explain it on the recovery page? I'm really confused about why I can't just switch between users by logging out and entering credentials for another user.

AnatomicJC commented 2 years ago

Hi @gvlasov 👋

Displaying the recovery page while clicking on "Or switch to another account" is the expected behavior.

As you may know, passbolt uses a PGP key pair to handle password encryption. Passwords are encrypted with the public PGP key, and you need a private key to be able to decrypt them. You can know more on this FAQ page: https://help.passbolt.com/faq/discover/how-does-it-work

While configuring the passbolt extension, you are asked for your private key who will be stored on the browser extension local storage. When you log in to passbolt through the extension, you are not connecting yourself to the passbolt API server, but you unlock your private key.

The passbolt browser extension currently support only one passbolt account (aka one private key stored in the browser local storage). That's why you are redirected to a user recovery page.

It is in our backlog to support multiple accounts, but we don't have any ETA for now. I can propose you a workaround: you can in your browser configure multiple profile, with one passbolt account per profile.

Don't hesitate if you have further questions.

Additional resources:

Best regards,