So there seems to be an established pattern when it comes to authentication and transitioning. On transition check authentication -> session expired -> stored attempted transition -> redirect to login -> successful login -> retry attempted transition
This we have already implemented and it works fine. Not we are wondering what to do when an action contains for example a rest call where authentication fails due to expired session? Here we want to redirect to login as with transitioning but the question is how do we get to where we were in the application before? Storing the routeName is not enough as there may be dynamic segments. Is there any ember object in the background that stores the current route including url parameters?
Aucun commentaire:
Enregistrer un commentaire