File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
server/src/main/java/dev/findfirst/security/config Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 66import dev .findfirst .security .oauth2client .handlers .Oauth2LoginSuccessHandler ;
77
88import lombok .RequiredArgsConstructor ;
9- import org .springframework .beans .factory .annotation .Qualifier ;
109import org .springframework .context .annotation .Bean ;
1110import org .springframework .context .annotation .Conditional ;
1211import org .springframework .context .annotation .Configuration ;
@@ -29,8 +28,8 @@ public Oauth2LoginSuccessHandler oauth2Success() {
2928 return new Oauth2LoginSuccessHandler (ts , rt );
3029 }
3130
32- @ Bean
33- @ Qualifier ( "defaultOauthService" ) public OAuth2UserService <OAuth2UserRequest , OAuth2User > defaultOAuth2UserService () {
31+ @ Bean ( name = { "defaultOauthService" , "defaultOAuth2UserService" })
32+ public OAuth2UserService <OAuth2UserRequest , OAuth2User > defaultOAuth2UserService () {
3433 return new DefaultOAuth2UserService ();
3534 }
3635}
You can’t perform that action at this time.
0 commit comments