Examples of IAuthenticationManager


Examples of com.gitblit.manager.IAuthenticationManager

      return auth;
    }

    @Test
    public void testAuthenticate() throws Exception {
      IAuthenticationManager auth = newAuthenticationManager();

      UserModel user = new UserModel("sunnyjim");
    user.password = "password";
    users.updateUserModel(user);

    assertNotNull(auth.authenticate(user.username, user.password.toCharArray()));
    user.disabled = true;

    users.updateUserModel(user);
    assertNull(auth.authenticate(user.username, user.password.toCharArray()));
    users.deleteUserModel(user);
    }
View Full Code Here

Examples of com.gitblit.manager.IAuthenticationManager

      return auth;
    }

    @Test
    public void testAuthenticate() throws Exception {
      IAuthenticationManager auth = newAuthenticationManager();

      UserModel user = new UserModel("sunnyjim");
    user.password = "password";
    users.updateUserModel(user);

    assertNotNull(auth.authenticate(user.username, user.password.toCharArray()));
    user.disabled = true;

    users.updateUserModel(user);
    assertNull(auth.authenticate(user.username, user.password.toCharArray()));
    users.deleteUserModel(user);
    }
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.