spring-vaadin
spring-vaadin copied to clipboard
An Authentication object was not found in the SecurityContext
When added @Push annotation to ui class and try to navigate another view i'm getting this error:
org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
DiscoveryNavigator securedNav = new DiscoveryNavigator(this, this);
Button click:
DiscoveryNavigator dn = (DiscoveryNavigator) UI.getCurrent().getNavigator();
dn.navigateTo((String) event.getButton().getData());
check this out, it helped me https://vaadin.com/forum#!/thread/3383122
thanks maslovalex. I solved with custom viewprovider and this one. https://github.com/michael-simons/vaadin-springsecurityviewprovider.