Class GithubSignInServiceImpl
java.lang.Object
org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService
edu.ucsb.cs156.frontiers.services.GithubSignInServiceImpl
- All Implemented Interfaces:
GithubSignInService
,org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest,
org.springframework.security.oauth2.core.user.OAuth2User>
@Service
public class GithubSignInServiceImpl
extends org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService
implements GithubSignInService
-
Constructor Summary
ConstructorsConstructorDescriptionGithubSignInServiceImpl
(UserRepository userRepository, CurrentUserService currentUserService, RosterStudentRepository rosterStudentRepository, UpdateUserService updateUserService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.user.OAuth2User
loadUser
(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest request) Methods inherited from class org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService
setAttributesConverter, setRequestEntityConverter, setRestOperations
-
Constructor Details
-
GithubSignInServiceImpl
public GithubSignInServiceImpl(@Autowired UserRepository userRepository, @Autowired CurrentUserService currentUserService, @Autowired RosterStudentRepository rosterStudentRepository, @Autowired UpdateUserService updateUserService)
-
-
Method Details
-
loadUser
public org.springframework.security.oauth2.core.user.OAuth2User loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest request) throws org.springframework.security.oauth2.core.OAuth2AuthenticationException - Specified by:
loadUser
in interfaceGithubSignInService
- Specified by:
loadUser
in interfaceorg.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest,
org.springframework.security.oauth2.core.user.OAuth2User> - Overrides:
loadUser
in classorg.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService
- Throws:
org.springframework.security.oauth2.core.OAuth2AuthenticationException
-