Package org.infoglue.cms.security

Examples of org.infoglue.cms.security.AuthenticationModule


   * @author Mattias Bogeblad
   */
 
  public String getLogoutURL() throws Exception
  {
    AuthenticationModule authenticationModule = AuthenticationModule.getAuthenticationModule(null, null, getRequest(), false);
      return authenticationModule.getLogoutUrl();
  }
View Full Code Here


      Cookie cookie_igpassword = new Cookie ("igpassword", "none");
      cookie_igpassword.setPath("/");
      cookie_igpassword.setMaxAge(0);
      getResponse().addCookie(cookie_igpassword);
   
    AuthenticationModule authenticationModule = AuthenticationModule.getAuthenticationModule(null, null, getRequest(), false);
    boolean redirected = authenticationModule.logoutUser(getRequest(), getResponse());
   
    if(redirected)
      return NONE;
    else
      return "logout";
View Full Code Here

        String casRenew       = InfoGlueAuthenticationFilter.casRenew;
        String casServiceUrl     = InfoGlueAuthenticationFilter.casServiceUrl;
        String casValidateUrl     = InfoGlueAuthenticationFilter.casValidateUrl;
        String casProxyValidateUrl   = InfoGlueAuthenticationFilter.casProxyValidateUrl;
       
        AuthenticationModule authenticationModule = (AuthenticationModule)Class.forName(authenticatorClass).newInstance();
      authenticationModule.setAuthenticatorClass(authenticatorClass);
      authenticationModule.setAuthorizerClass(authorizerClass);
      authenticationModule.setInvalidLoginUrl(invalidLoginUrl);
      authenticationModule.setLoginUrl(loginUrl);
      authenticationModule.setServerName(serverName);
      authenticationModule.setExtraProperties(extraProperties);
      authenticationModule.setCasRenew(casRenew);
      authenticationModule.setCasServiceUrl(casServiceUrl);
      authenticationModule.setCasValidateUrl(casValidateUrl);
      authenticationModule.setCasProxyValidateUrl(casProxyValidateUrl);
      authenticationModule.setTransactionObject(db);
     
      String authenticatedUserName = authenticationModule.authenticateUser(request);
      logger.info("authenticatedUserName:" + authenticatedUserName);
      if(authenticatedUserName != null)
        principal = UserControllerProxy.getController(db).getUser(authenticatedUserName);
      logger.info("principal:" + principal);
    }
View Full Code Here

   * @author Mattias Bogeblad
   */
 
  public String getLogoutURL() throws Exception
  {
    AuthenticationModule authenticationModule = AuthenticationModule.getAuthenticationModule(this.getDatabase(), null, getHttpServletRequest(), false);
      return authenticationModule.getLogoutUrl();
  }
View Full Code Here

      Cookie cookie_igpassword = new Cookie ("igpassword", "none");
      cookie_igpassword.setPath("/");
      cookie_igpassword.setMaxAge(0);
      getResponse().addCookie(cookie_igpassword);

    AuthenticationModule authenticationModule = AuthenticationModule.getAuthenticationModule(null, null, getRequest(), false);
    boolean redirected = authenticationModule.logoutUser(getRequest(), getResponse());
   
    if(redirected)
    {
      return NONE;
    }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.security.AuthenticationModule

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.