source: src/main/java/it/finki/charitable/security/UserO2AuthService.java

Last change on this file was b8dc761, checked in by NikolaCenevski <cenevskinikola@…>, 3 years ago

part 2

  • Property mode set to 100644
File size: 653 bytes
RevLine 
[b8dc761]1package it.finki.charitable.security;
2
3import org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService;
4import org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest;
5import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
6import org.springframework.security.oauth2.core.user.OAuth2User;
7import org.springframework.stereotype.Service;
8
9@Service
10public class UserO2AuthService extends DefaultOAuth2UserService {
11
12 @Override
13 public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2AuthenticationException {
14 return new UserO2Auth(super.loadUser(userRequest));
15 }
16}
Note: See TracBrowser for help on using the repository browser.