Skip to content

Commit

Permalink
Remove remoting technologies support
Browse files Browse the repository at this point in the history
Closes gh-10366
  • Loading branch information
marcusdacoregio authored and rwinch committed Oct 25, 2021
1 parent 75cfdf8 commit 25f396c
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 1,723 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,24 +208,6 @@ public void duplicateElementCausesError() {
.isThrownBy(() -> setContext("<global-method-security />" + "<global-method-security />"));
}

// SEC-936
@Test
public void worksWithoutTargetOrClass() {
// @formatter:off
setContext("<global-method-security secured-annotations='enabled'/>"
+ "<b:bean id='businessService' class='org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean'>"
+ " <b:property name='serviceUrl' value='http://localhost:8080/SomeService'/>"
+ " <b:property name='serviceInterface' value='org.springframework.security.access.annotation.BusinessService'/>"
+ "</b:bean>"
+ ConfigTestUtils.AUTH_PROVIDER_XML);
// @formatter:on
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("Test", "Password",
AuthorityUtils.createAuthorityList("ROLE_SOMEOTHERROLE"));
SecurityContextHolder.getContext().setAuthentication(token);
this.target = (BusinessService) this.appContext.getBean("businessService");
assertThatExceptionOfType(AccessDeniedException.class).isThrownBy(this.target::someUserMethod1);
}

// Expression configuration tests
@SuppressWarnings("unchecked")
@Test
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 25f396c

Please sign in to comment.