Class UserInfoService

java.lang.Object
eu.dnetlib.authentication.services.UserInfoService

@Service public class UserInfoService extends Object
  • Constructor Details

    • UserInfoService

      @Autowired public UserInfoService(Properties properties, org.springframework.web.client.RestTemplate restTemplate, SecurityService service, org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository repository, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository)
  • Method Details

    • getUserInfo

      public User getUserInfo(jakarta.servlet.http.HttpServletRequest request) throws eu.dnetlib.uoaauthorizationlibrary.authorization.exceptions.http.NotFoundException
      Throws:
      eu.dnetlib.uoaauthorizationlibrary.authorization.exceptions.http.NotFoundException
    • getAccessToken

      public TokenResponse getAccessToken(String refreshToken)
    • getTokenRequest

      public org.springframework.util.MultiValueMap<String,String> getTokenRequest(String refreshToken)
    • revoke

      public void revoke(jakarta.servlet.http.HttpServletRequest request)
    • revokeTokenRequest

      public org.springframework.util.MultiValueMap<String,String> revokeTokenRequest(String refreshToken)
    • getClient

      public org.springframework.security.oauth2.client.registration.ClientRegistration getClient()