Skip to content

Commit 9d02d9a

Browse files
committed
Merge pull request #28532 from jzheaux
* pr/28532: Update copyright year of changed file Harmonize @ConditionalOnMissingBean definition Closes gh-28532
2 parents e7d62ff + d21c48e commit 9d02d9a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/UserDetailsServiceAutoConfiguration.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -58,7 +58,8 @@
5858
@ConditionalOnMissingBean(
5959
value = { AuthenticationManager.class, AuthenticationProvider.class, UserDetailsService.class },
6060
type = { "org.springframework.security.oauth2.jwt.JwtDecoder",
61-
"org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector" })
61+
"org.springframework.security.oauth2.server.resource.introspection.OpaqueTokenIntrospector",
62+
"org.springframework.security.oauth2.client.registration.ClientRegistrationRepository" })
6263
public class UserDetailsServiceAutoConfiguration {
6364

6465
private static final String NOOP_PASSWORD_PREFIX = "{noop}";
@@ -68,8 +69,6 @@ public class UserDetailsServiceAutoConfiguration {
6869
private static final Log logger = LogFactory.getLog(UserDetailsServiceAutoConfiguration.class);
6970

7071
@Bean
71-
@ConditionalOnMissingBean(
72-
type = "org.springframework.security.oauth2.client.registration.ClientRegistrationRepository")
7372
@Lazy
7473
public InMemoryUserDetailsManager inMemoryUserDetailsManager(SecurityProperties properties,
7574
ObjectProvider<PasswordEncoder> passwordEncoder) {

0 commit comments

Comments
 (0)