Example #1
0
 @Override
 public void configureTestRealm(RealmRepresentation testRealm) {
   UserRepresentation user = RealmRepUtil.findUser(testRealm, "test-user@localhost");
   UserBuilder.edit(user).hotpSecret("hotpSecret").otpEnabled();
 }
Example #2
0
 public static void addRequiredActionForUser(
     RealmRepresentation testRealm, String userName, String action) {
   UserRepresentation user = findUserInRealmRep(testRealm, userName);
   UserBuilder.edit(user).requiredAction(action);
 }