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