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
I develop a Vaadin application with Java based login (to avoid any actual webpages in my application):
final Subject currentUser = SecurityUtils.getSubject();
final AuthenticationToken token = new UsernamePasswordToken(username, password);
currentUser.login(token);
UI.getCurrent().getNavigator().navigateTo(HomeView.NAVIGATION_NAME);
As you can see, I navigate to my home view (for authenticated user only) after a successful login. However, the ShiroSecurityNavigator seems to have already decided which views are allowed and which one are not. Hence the navigator does not allow to navigate to home. My current workaround is to reinitialize the navigator:
There should be a better approach in my opinion. The security navigator should recognize changes in the authentication or should at least provide a method to re-read the allowed views.
The text was updated successfully, but these errors were encountered:
I develop a Vaadin application with Java based login (to avoid any actual webpages in my application):
As you can see, I navigate to my home view (for authenticated user only) after a successful login. However, the
ShiroSecurityNavigator
seems to have already decided which views are allowed and which one are not. Hence the navigator does not allow to navigate to home. My current workaround is to reinitialize the navigator:There should be a better approach in my opinion. The security navigator should recognize changes in the authentication or should at least provide a method to re-read the allowed views.
The text was updated successfully, but these errors were encountered: