snapweb icon indicating copy to clipboard operation
snapweb copied to clipboard

Logout/profile support

Open AlexandreAbreu opened this issue 9 years ago • 5 comments

AlexandreAbreu avatar Jan 30 '17 22:01 AlexandreAbreu

Marked as WIP since I need to put back the macaroon handling in snapweb & via SSO and investigate the "hand off to snapd",

AlexandreAbreu avatar Jan 31 '17 19:01 AlexandreAbreu

The branch has been updated to remove the login steps and account for a command line login option

AlexandreAbreu avatar Feb 06 '17 21:02 AlexandreAbreu

Ok, so I finally tested this.

This works as advertised, ie I was able to login, logout, see my profile.

I noticed the following issues as a user (ie not code issues). I mention here for the record. This will require other branches for most of those :

  • the logout link is not aligned with the rest of the text
  • i needed to refresh the profile page once logged in from the command line (need a poll mechanism, like for installing snaps)
  • installing snaps is broken with this branch, either when logged in, or not
  • if not logged in i would expect not to be able to install snaps
  • when logged in, i would like to see my avatar ;) ie http://www.gravatar.com/avatar/' + md5(email));
  • the profile tab layout is not great, would need some visual design love

dbarth avatar Feb 08 '17 17:02 dbarth

@dbarth:

the logout link is not aligned with the rest of the text

right will fix it,

i needed to refresh the profile page once logged in from the command line (need a poll mechanism, like for installing snaps)

yes, but I did not want to add something like that that would become obsolete as soon as we add the explicit login state.

Thinking about it, ... it would actually be handy, maybe not using polling, but a better mechanism, since we have a dual login mechanism (command line & web),

installing snaps is broken with this branch, either when logged in, or not

checking,

if not logged in i would expect not to be able to install snaps

no, when not logged in you can still install snaps locally, the login bit allows you to see your private snap. But at the system (snapd) level there is no login requirement to install snaps,

when logged in, i would like to see my avatar ;) ie http://www.gravatar.com/avatar/' + md5(email));

ah ! yes,

the profile tab layout is not great, would need some visual design love

yes, it is pretty empty atm, and there is a "bug" at the snapd level that prevents us from getting a meaningful user name,

AlexandreAbreu avatar Feb 08 '17 17:02 AlexandreAbreu

I updated the PR with some fixes, I can properly install snaps though. Some snaps fail during install (even with the snap command line) though, like 'avahi' and 'asciinema' make sure you dont test with those. The error reporting for snap install failures and even for weird snap issues (like avahi that seems to unlink during snap install) is bad at the moment. I'll add bugs for those,

AlexandreAbreu avatar Feb 08 '17 19:02 AlexandreAbreu