Skip to content

Commit

Permalink
Remove remoting technologies support
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusdacoregio committed Oct 13, 2021
1 parent e89daab commit 887b41f
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 1,260 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
21 changes: 1 addition & 20 deletions docs/modules/ROOT/pages/modules.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Where a module depends on another Spring Security module, the non-optional depen

[[spring-security-core]]
== Core -- `spring-security-core.jar`
This module contains core authentication and access-contol classes and interfaces, remoting support, and basic provisioning APIs.
This module contains core authentication and access-contol classes and interfaces, and basic provisioning APIs.
It is required by any application that uses Spring Security.
It supports standalone applications, remote clients, method (service layer) security, and JDBC user provisioning.
It contains the following top-level packages:
Expand Down Expand Up @@ -69,25 +69,6 @@ It contains the following top-level packages:
|===


[[spring-security-remoting]]
== Remoting -- `spring-security-remoting.jar`
This module provides integration with Spring Remoting.
You do not need this unless you are writing a remote client that uses Spring Remoting.
The main package is `org.springframework.security.remoting`.

.Remoting Dependencies
|===
| Dependency | Version | Description

| spring-security-core
|
|

| spring-web
|
| Required for clients which use HTTP remoting support.
|===

[[spring-security-web]]
== Web -- `spring-security-web.jar`
This module contains filters and related web-security infrastructure code.
Expand Down

This file was deleted.

20 changes: 0 additions & 20 deletions remoting/spring-security-remoting.gradle

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 887b41f

Please sign in to comment.