Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding @PageAuthorize page state. #215

Closed
wants to merge 10 commits into from
Closed

Commits on Dec 22, 2016

  1. Adding @PageAuthorize page state.

    This gives an opportunity for "gatekeeping" pages asynchronously.
    
    @PageAuthorize
    void onAuthorize(NavigationControl control) {
        myService.call(hasAccess -> {
            if(hasAccess) {
                // We have access, proceed with navigation.
                control.proceed();
            } else {
                // Interrupt navigation and redirect.
                control.interrupt();
                redirectPageTo.go();
            }
        }).hasAccess(modelId, userId);
    }
    BenDol committed Dec 22, 2016
    Configuration menu
    Copy the full SHA
    20d1372 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2017

  1. New fix for distributed session use case (reverts change to QueueSess…

    …ion id).
    
    Revert change to HttpSessionWrapper. Don't store SessionContainer in
    session anymore. Keep map of SessionContainers instead.
    mbarkley authored and BenDol committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    0bcccf3 View commit details
    Browse the repository at this point in the history
  2. ERRAI-979: Provide functionality for CSRF protection

    CSRF protection on message bus servlets is enabled by property.
    Enabling the property creates a CSRF token on the first POST
    request to the server bus.
    
    The token can be written to an HTML page as a JavaScript variable
    with a filter, or else the client can acquire it from a challenge
    from the server (a 403 response containing the token as a header).
    
    There is also a filter that protects REST endpoints using the same token.
    When an Errai REST caller finds the token in a global JavaScript variable,
    it will set this as a header for all REST requests.
    
    Errai REST callers will also retry after a challenge from the server
    (403 + token in header).
    mbarkley authored and BenDol committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    384dcfa View commit details
    Browse the repository at this point in the history
  3. Add regression test for ERRAI-914.

    mbarkley authored and BenDol committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    7dd53ac View commit details
    Browse the repository at this point in the history
  4. Regression test for ERRAI-757.

    mbarkley authored and BenDol committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    dda3eea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    839e3f0 View commit details
    Browse the repository at this point in the history
  6. Support destruction of @ApplicationScoped beans.

    Previously a @PreDestroy would be called but
    @ApplicationScoped instance would remain in service.
    mbarkley authored and BenDol committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    3128a29 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    db99e52 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9a8af2d View commit details
    Browse the repository at this point in the history
  9. Update for PR suggestions

    BenDol committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    864ef0c View commit details
    Browse the repository at this point in the history