Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mixup with username/email #84

Open
rienafairefr opened this issue Apr 24, 2019 · 3 comments
Open

mixup with username/email #84

rienafairefr opened this issue Apr 24, 2019 · 3 comments

Comments

@rienafairefr
Copy link
Contributor

Seen at the tutorial at station F today:

  • log in the webportal using email/password combination.
  • start an experiment
  • go to that experiment details
  • the node actions buttons are not visible
  • logout
  • log in using username/password combination
  • the node actions buttons are back

I think the problem comes from the auth.username field (stored in the browser in LocalStorage), which contains the email when the user logged in with the email/password combination. But in the experiment details view, the experiment.user field is not the email :-)

@rienafairefr
Copy link
Contributor Author

Reproduced, and diagnostic confirmed. On devwww.iot-lab.info, when logging in with email, then some functionalities don't work (experiment details at least). With #85 deployed the problem goes away 👍

@vandaele
Copy link
Contributor

Thx for having found the origin and a fix so quickly.
So, why a user authenticated with his email could see experimentations anyway ?

@rienafairefr
Copy link
Contributor Author

the JS web-app sends (username/email, password) on each request, in testbed-manager the LDAP verifier can handle either (username, password) (email, password) to authorize a certain request response :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants