You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2019. It is now read-only.
@6a68 So you'd vote for "undefined behavior" here? The one non-weird case I can think of is a "Switch Accounts" button, which is apparently very common in Drupal sites.
@callahad 'Switch Accounts', to me, sounds like "log out, then log in as another user." If I'm understanding correctly, the flow you're describing comes down to:
To me, this feels equivalent to a website always displaying the login button. I think the experience is going to be odd, no matter what, because it's odd to show a login button when you're already logged in--it tells the user they actually aren't logged in.
TL;DR: I'd vote for firing onmatch() again, because the login button should always behave the same way.
In my opinion no callbacks should be called if loggedInUser equal to Persona's state.
Visitor entered Persona's credentials, send assertion code to backend and successfully confirm that he has that email address. So, from server I can response with that email and store it as a session variable. After that I can handle that response with "onlogin" callback.
When page has been reloaded it should be repopulated with email address from server response (or by calling ajax to get email of logged in user). Also, as email stored in session I already know that user logged in and can handle his requests keeping this fact in mind.
Hi! To help us better focus, I'm "closing" all issues that have been open for more than six months. These have been tagged "cleanup-2014" so that we can go back and review them in the future.
(via StackOverflow)
The Scene
foo@mockmyid.com
loggedInUser
is already set correctly,"foo@mockmyid.com"
onmatch
fires, followed byonready
The Actions
id.request()
.foo@mockmyid.com
and click "next."The Result
Your selected identity matches the current page state. Which of these should happen?
onmatch
callback fires.onlogin
callback fires.The text was updated successfully, but these errors were encountered: