Project

General

Profile

« Previous | Next » 

Revision dfe03eb9

Added by Cherian Mathew almost 9 years ago

setting authentication in security context of UI thread

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/ui/AbstractAuthenticatedUI.java
48 48
        URI uri = Page.getCurrent().getLocation();
49 49
        String context = VaadinServlet.getCurrent().getServletContext().getContextPath();
50 50
        if(ignoreAuthentication || (cvAuthentication != null && cvAuthentication.isAuthenticated(uri, context))) {
51
            if(cvAuthentication != null) {
52
                cvAuthentication.setSecurityContextAuthentication(uri, context);
53
            }
51 54
            UI.getCurrent().getNavigator().navigateTo(getFirstViewName());
52 55
        } else {
53 56
            UI.getCurrent().getNavigator().navigateTo(AUTHENTICATION_VIEW);

Also available in: Unified diff