@Before public void setupRoles() throws Throwable { this.host.setSystemAuthorizationContext(); AuthorizationHelper authHelper = new AuthorizationHelper(this.host); this.userServiceJane = authHelper.createUserService(this.host, USER_JANE_EMAIL); authHelper.createRoles(this.host, USER_JANE_EMAIL); this.userServiceJohn = authHelper.createUserService(this.host, USER_JOHN_EMAIL); authHelper.createRoles(this.host, USER_JOHN_EMAIL); this.host.resetAuthorizationContext(); }
@Before public void setupRoles() throws Throwable { this.host.setSystemAuthorizationContext(); AuthorizationHelper authHelper = new AuthorizationHelper(this.host); this.userServiceJane = authHelper.createUserService(this.host, USER_JANE_EMAIL); authHelper.createRoles(this.host, USER_JANE_EMAIL); this.userServiceJohn = authHelper.createUserService(this.host, USER_JOHN_EMAIL); authHelper.createRoles(this.host, USER_JOHN_EMAIL); this.host.resetAuthorizationContext(); }
String email = "jane@doe.com"; authHelper.createUserService(h, email); authHelper.createRoles(h, email);
String email = "jane@doe.com"; authHelper.createUserService(h, email); authHelper.createRoles(h, email);
@Before public void setupRoles() throws Throwable { this.host.setSystemAuthorizationContext(); this.authHelper = new AuthorizationHelper(this.host); this.userServicePath = this.authHelper.createUserService(this.host, "jane@doe.com"); this.authHelper.createRoles(this.host, "jane@doe.com"); this.host.resetAuthorizationContext(); }
@Before public void setupRoles() throws Throwable { this.host.setSystemAuthorizationContext(); this.authHelper = new AuthorizationHelper(this.host); this.userServicePath = this.authHelper.createUserService(this.host, "jane@doe.com"); this.authHelper.createRoles(this.host, "jane@doe.com"); this.host.resetAuthorizationContext(); }
private String createUsers(VerificationHost host, String userName, String email) throws Throwable { AuthorizationHelper authHelper = new AuthorizationHelper(host); String userServiceLink = authHelper.createUserService(host, email); authHelper.createRoles(host, email); AuthCredentialsServiceState authServiceState = new AuthCredentialsServiceState(); authServiceState.userEmail = email; authServiceState.privateKey = email; URI authUri = UriUtils.buildUri(host, AuthCredentialsService.FACTORY_LINK); TestRequestSender sender = new TestRequestSender(host); sender.sendAndWait(Operation.createPost(authUri).setBody(authServiceState)); return userServiceLink; }
private String createUsers(VerificationHost host, String userName, String email) throws Throwable { AuthorizationHelper authHelper = new AuthorizationHelper(host); String userServiceLink = authHelper.createUserService(host, email); authHelper.createRoles(host, email); AuthCredentialsServiceState authServiceState = new AuthCredentialsServiceState(); authServiceState.userEmail = email; authServiceState.privateKey = email; URI authUri = UriUtils.buildUri(host, AuthCredentialsService.FACTORY_LINK); TestRequestSender sender = new TestRequestSender(host); sender.sendAndWait(Operation.createPost(authUri).setBody(authServiceState)); return userServiceLink; }
authHelperForFoo.patchUserService(this.host, fooUserLink, patchState); authHelperForFoo.createRoles(this.host, email);
authHelperForFoo.patchUserService(this.host, fooUserLink, patchState); authHelperForFoo.createRoles(this.host, email);