Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aspectjVersion=1.9.3
gaeVersion=1.9.76
springBootVersion=2.2.0.M6
springBootVersion=2.2.0.RELEASE
version=5.2.1.BUILD-SNAPSHOT
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
package sample;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.rsocket.context.RSocketServerInitializedEvent;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -27,6 +25,9 @@
import org.springframework.security.rsocket.metadata.UsernamePasswordMetadata;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;

import org.junit.Test;
import org.junit.runner.RunWith;
import reactor.core.publisher.Mono;

import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -91,7 +92,7 @@ static class Config implements ApplicationListener<RSocketServerInitializedEvent

@Override
public void onApplicationEvent(RSocketServerInitializedEvent event) {
this.port = event.getrSocketServer().address().getPort();
this.port = event.getServer().address().getPort();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@

package sample;

import org.springframework.boot.rsocket.server.ServerRSocketFactoryCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.rsocket.EnableRSocketSecurity;
import org.springframework.security.core.userdetails.MapReactiveUserDetailsService;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.rsocket.core.SecuritySocketAcceptorInterceptor;

/**
* @author Rob Winch
Expand All @@ -43,9 +41,4 @@ MapReactiveUserDetailsService userDetailsService() {
return new MapReactiveUserDetailsService(user);
}

@Bean
ServerRSocketFactoryCustomizer springSecurityRSocketSecurity(
SecuritySocketAcceptorInterceptor interceptor) {
return builder -> builder.addSocketAcceptorPlugin(interceptor);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public class Saml2LoginIntegrationTests {
@EnableAutoConfiguration
@ComponentScan(basePackages = "sample")
public static class SpringBootApplicationTestConfig {

}

@Test
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

import boot.saml2.config.Saml2LoginBootConfiguration;

@SpringBootApplication
@Import(Saml2LoginBootConfiguration.class)
public class Saml2LoginApplication {

public static void main(String[] args) {
Expand Down
38 changes: 0 additions & 38 deletions samples/boot/saml2login/src/main/java/sample/SecurityConfig.java

This file was deleted.

Loading