Examples of authenticateUser()


Examples of com.centraview.login.Login.authenticateUser()

    try {
      InitialContext ic = CVUtility.getInitialContext();
      LoginHome lh = (LoginHome) ic.lookup("Login");
      Login remote = (Login) lh.create();
      remote.setDataSource(dataSource);
      hm = (HashMap) remote.authenticateUser(userName, passwd);
      //checking hashmap
      if (hm != null && hm.get("userid")!= null && hm.get("individualid")!= null && hm.get("lastName")!= null && hm.get("firstName")!= null ) {
        session.set("authenticateUserHashMap", hm);
        authenticationString = AUTHENTICATION_SUCCESS_STATUS;
        //QBSyncHome qbsh = (QBSyncHome) CVUtility.getHomeObject("com.centraview.qbsync.QBSyncHome", "QBSync");
View Full Code Here

Examples of com.centraview.login.Login.authenticateUser()

        return (mapping.findForward("dataerror"));
      }

      Login remote = lh.create();
      remote.setDataSource(dataSource);
      usrResult = remote.authenticateUser(username, password);
      // Check to make sure the usrResult has all the fields we expect of it.
      // if so then it was a valid login, if not, then we will fail with a general
      // authentication error.
      if (usrResult.containsKey("individualid") && usrResult.containsKey("firstName") && usrResult.containsKey("lastName") && usrResult.containsKey("type")) {
        int individualId = Integer.parseInt((String)usrResult.get("individualid"));
View Full Code Here

Examples of jpa.controllers.UserJpaController.authenticateUser()

    }
   
   @Test
   public void testAuthenticateInvalidUser() {
       UserJpaController service = new UserJpaController(emf);
       boolean result = service.authenticateUser("ata@gmail.com", "dddss", s1);
       Assert.assertFalse(result);
   }
   
    @Test
    public void testInsertUsersAndcheckCount() {
View Full Code Here

Examples of org.infoglue.cms.security.AuthenticationModule.authenticateUser()

      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.intalio.tempo.security.ws.TokenClient.authenticateUser()

    private void runAbsenceRequest(String paramUser, String paramPassword, HashMap pipa, HashMap complete) throws Exception {
        _log.info("Instanciate token service client");
        TokenClient client = new TokenClient(TOKEN_SERVICE);

        _log.info("We are trying to authenticate as user:" + paramUser + " with password:" + paramPassword);
        String token = client.authenticateUser(paramUser, paramPassword);
       
        _log.info("We have gained a token from the token service. We can use it to call authenticated tempo services");
        Property[] props = client.getTokenProperties(token);
        String user = (String) PropertyUtils.getProperty(props, AuthenticationConstants.PROPERTY_USER).getValue();
        _log.info("Decrypting the token properties. We have successfully logged in as:" + user);
View Full Code Here

Examples of org.intalio.tempo.security.ws.TokenClient.authenticateUser()

                    throws Exception {
        _log.info("Running absence request with optional call to:" + optionalCall);

        _log.info("Get the token client and authenticate");
        TokenClient client = new TokenClient(TOKEN_SERVICE);
        String token = client.authenticateUser(paramUser, paramPassword);

        _log.info("get the tms client");
        //RemoteTMSClient tms = new RemoteTMSClient(TMS_SERVICE, token);
        TempoClient tempoClient = new TempoClient("http://localhost:8080", token, client);
       
View Full Code Here

Examples of org.intalio.tempo.security.ws.TokenClient.authenticateUser()

    /**
     * This is to check, we have no problems completing the task after numerous (possibly conflicting) CLAIM/REVOKE requests
     */
    private void runAbsenceRequestWithRandomClaimRevokeTMPCalls(String paramUser, String paramPassword, HashMap pipa, HashMap complete) throws Exception {
        TokenClient client = new TokenClient(TOKEN_SERVICE);
        String token = client.authenticateUser(paramUser, paramPassword);
        //RemoteTMSClient tms = new RemoteTMSClient(TMS_SERVICE, token);
        TempoClient tempoClient = new TempoClient("http://localhost:8080", token, client);
        Task[] ts = tempoClient.getAvailableTasks("PIPATask", "T._description like '%Examples%'");
        String pipaID = ts[0].getID();
        tempoClient.init(pipaID, tempoClient.createMessageAsDocument(pipa, "abr_initPipa.ftl"));
View Full Code Here

Examples of org.intalio.tempo.security.ws.TokenClient.authenticateUser()

    String paramUser = "admin";
    String paramPassword = "changeit";
   
    // prepare the token
    TokenClient client = new TokenClient(TOKEN_SERVICE);
    String token = client.authenticateUser(paramUser, paramPassword);
    // testing client, including call to TMS, TMP
    TempoClient tempoClient = new TempoClient("http://localhost:8080", token, client);

   
    // search PIPA tasks using wild card description
View Full Code Here

Examples of org.mmisw.orrclient.IOrrClient.authenticateUser()

      return null;
    }
   
    System.out.println("getOntologyInfo: " +registeredOntologyInfo.getDisplayLabel());
   
    LoginResult loginResult = orrClient.authenticateUser(username, password);
    if ( loginResult.getError() != null ) {
      System.out.println("authenticateUser: " +loginResult.getError());
      return null;
    }
    System.out.println("authenticateUser: sessionId=" +loginResult.getSessionId());
View Full Code Here

Examples of org.projectforge.user.UserDao.authenticateUser()

  {
    ProjectForgeApp.init(null, null);
    WicketApplication.internalSetUpAndRunning(true);
    final HttpServletResponse response = mock(HttpServletResponse.class);
    final UserDao userDao = mock(UserDao.class);
    when(userDao.authenticateUser(Mockito.eq("successUser"), Mockito.eq("successPassword"))).thenReturn(
        new PFUserDO().setUsername("successUser"));
    when(userDao.getCachedAuthenticationToken(Mockito.eq(2))).thenReturn("token");
    final UserGroupCache userGroupCache = mock(UserGroupCache.class);
    when(userDao.getUserGroupCache()).thenReturn(userGroupCache);
    when(userGroupCache.getUser(Mockito.eq(2))).thenReturn(new PFUserDO().setUsername("testuser"));
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.