Last change
on this file since a64f926 was b8dc761, checked in by NikolaCenevski <cenevskinikola@…>, 3 years ago |
part 2
|
-
Property mode
set to
100644
|
File size:
653 bytes
|
Line | |
---|
1 | package it.finki.charitable.security;
|
---|
2 |
|
---|
3 | import org.springframework.security.oauth2.client.userinfo.DefaultOAuth2UserService;
|
---|
4 | import org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest;
|
---|
5 | import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
|
---|
6 | import org.springframework.security.oauth2.core.user.OAuth2User;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | @Service
|
---|
10 | public 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.