/connect form not accessible when storage is already connected #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addendum to #6; steps to reproduce:
Actual results:
User is redirected to https://inspektor.5apps.com/ (the main application view)
Expected results:
User is prompted to fast-switch (no intermediate "disconnect" step) between two different remoteStorage-enabled accounts or given the alternative choice to go back to the main application view.
There is currently no way to have two different accounts connected with remoteStorage.js, so we cannot implement this at the moment.
/connect when already logged in redirects to main application viewto Connect multiple accounts at onceConnect multiple accounts at onceto Connect multiple accountsTo clarify:
Right now, /connect is only valid for users who haven't gone through auth, and /disconnect is only valid for those who have.
/disconnect will allow those who have to disconnect, whereas those who are already disconnected are redirected to /connect and prompted to "Connect your storage".
/connect will allow those who haven't gone through auth to do so, whereas for those who already have, users get punted to the main application view.
This bug is about whether or not it's reasonable for a user to expect /connect to give them the same/similar "Connect your storage" prompt even if they've already gone through auth, and what the effect of that form should be. However, this bug is not about allowing users to connect to multiple accounts. (I don't think that would be a very good idea to implement.)
For any user who hasn't yet connected to any storage space, the prompt should continue to behave the way it does now.
For a user alice@example.com who has already connected to her storage, hitting /connect should:
The effect of choosing B and entering alice@kosmos.example should be to disconnect from alice@example.com and connect to alice@kosmos.example.
Connect multiple accountsto /connect redirects to main application view when already logged in/connect redirects to main application view when already logged into /connect form not accessible when storage is already connectedIn that case, the current behavior is already correct. Users are not supposed to use URLs for UI actions. You can just click "disconnect" and then connect with a different account. The app always shows which account is connected in the top left corner.