Examples of CASConfig


Examples of org.beangle.security.cas.CasConfig

*/
@Test
public class CommonUtilsTest {

  public void testConstuctServiceUrl() {
    CasConfig config = new CasConfig();
    config.setCasServer("http://www.mycompany.com/cas");
    config.setLocalServer("localhost:8080/demo");
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setContextPath("/demo");
    request.setServletPath("/home.action");
    request.setRequestURI("/demo/home.action");
    System.out.println(request.getRequestURI());
    HttpServletResponse response = new MockHttpServletResponse();
    final String urlEncodedService = CommonUtils.constructServiceUrl(request, response, null,
        config.getLocalServer(), "ticket", config.isEncode());
    System.out.println(urlEncodedService);
  }
View Full Code Here

Examples of org.fenixedu.bennu.core.util.CoreConfiguration.CasConfig

        HttpSession session = request.getSession(false);

        ActionForward result = null;

        final CasConfig casConfig = CoreConfiguration.casConfig();

        if (casConfig != null && casConfig.isCasEnabled()) {
            if (request.getParameter("logoutFromCAS") != null && request.getParameter("logoutFromCAS").equals("true")) {
                Authenticate.logout(session);
                result = new ActionForward("/commons/blankWithTitle.jsp");
            } else {
                result = getCasLogoutActionForward(casConfig);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.