Package org.zanata.webtrans.shared.auth

Examples of org.zanata.webtrans.shared.auth.InvalidTokenError


        HttpSession session =
                ServletContexts.instance().getRequest().getSession();
        if (session != null && !session.getId().equals(a.getCsrfToken())) {
            log.warn("Token mismatch. Client token: {}, Expected token: {}",
                    a.getCsrfToken(), session.getId());
            throw new InvalidTokenError(
                    "The csrf token sent with this request is not valid. It may be from an expired session, or may have been forged");
        }
        DefaultExecutionContext ctx = new DefaultExecutionContext(this);
        try {
            return (R) doExecute(a.getAction(), ctx);
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.auth.InvalidTokenError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.