Examples of AuthenticationModule


Examples of de.innovationgate.webgate.api.auth.AuthenticationModule

    public void setAuthenticationModule(AuthenticationModule authenticationModule) throws WGIllegalArgumentException {
       
        closeAuthenticationModule();
       
        // Unpack the auth module to see its real capabilities
        AuthenticationModule backendModule = authenticationModule;
        while (backendModule instanceof RedirectionAuthModule) {
            backendModule = ((RedirectionAuthModule) backendModule).getBackendModule();
        }
       
        if (certAuthEnabled() && (!(backendModule instanceof CertAuthCapableAuthModule))) {
View Full Code Here

Examples of de.innovationgate.webgate.api.auth.AuthenticationModule

            if (dc == null) {
                addwarning("No configuration found for domain: " + domainName);
                return null;
            }
           
            AuthenticationModule authModule = dc.getAuthModule();
            if (authModule != null) {
                return authModule.getAuthenticationSource();
            }
            else {
                return null;
            }
      }
View Full Code Here

Examples of de.innovationgate.webgate.api.auth.AuthenticationModule

        String eMail = (String) persistentStore.get(STORE_AUTHOR_EMAIL);
        if (eMail != null) {
            return eMail;
        }
       
        AuthenticationModule auth = getDatabase().getAuthenticationModule();
        if (auth == null) {
            return null;
        }
       
        eMail = auth.getEMailAddress(getAuthor());
        persistentStore.put(STORE_AUTHOR_EMAIL, eMail);
        return eMail;
       
    }
View Full Code Here

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

Examples of org.infoglue.cms.security.AuthenticationModule

      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

Examples of org.infoglue.cms.security.AuthenticationModule

        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

Examples of org.infoglue.cms.security.AuthenticationModule

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

Examples of org.infoglue.cms.security.AuthenticationModule

      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

Examples of org.jboss.aerogear.android.authentication.AuthenticationModule

        when(factory.get(anyObject(), anyObject())).thenReturn(provider);

        AuthorizationFields authFields = new AuthorizationFields();
        authFields.addQueryParameter("token", "token");

        AuthenticationModule urlModule = mock(AuthenticationModule.class);
        when(urlModule.isLoggedIn()).thenReturn(true);
        when(urlModule.getAuthorizationFields((URI)anyObject(), anyString(), (byte[]) anyObject())).thenReturn(authFields);

        PipeConfig config = new PipeConfig(url, Data.class);
        config.setAuthModule(urlModule);

        RestAdapter<Data> adapter = new RestAdapter<Data>(Data.class, url, config);
View Full Code Here

Examples of org.jboss.errai.workspaces.client.modules.auth.AuthenticationModule

 
  public Application()
  {
    bus.setLogAdapter(logAdapter);
   
    authenticationModule = new AuthenticationModule();
    securityService = new SecurityService();

    // global service registry
    Registry.set(SecurityService.class, securityService);
    Registry.set(AuthenticationModule.class, authenticationModule);
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.