|
|
|
@ -159,7 +159,9 @@ class UserDetailsServiceAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void userDetailsServiceWhenRelyingPartyRegistrationRepositoryBeanPresent() {
|
|
|
|
|
this.contextRunner.withUserConfiguration(TestConfigWithRelyingPartyRegistrationRepository.class)
|
|
|
|
|
this.contextRunner
|
|
|
|
|
.withBean(RelyingPartyRegistrationRepository.class,
|
|
|
|
|
() -> mock(RelyingPartyRegistrationRepository.class))
|
|
|
|
|
.run(((context) -> assertThat(context).doesNotHaveBean(InMemoryUserDetailsManager.class)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -241,17 +243,6 @@ class UserDetailsServiceAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
|
@Import(TestSecurityConfiguration.class)
|
|
|
|
|
static class TestConfigWithRelyingPartyRegistrationRepository {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
RelyingPartyRegistrationRepository relyingPartyRegistrationRepository() {
|
|
|
|
|
return mock(RelyingPartyRegistrationRepository.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
|
@Import(TestSecurityConfiguration.class)
|
|
|
|
|
static class TestConfigWithJwtDecoder {
|
|
|
|
|