Interface OAuth2UserService<R extends OAuth2UserRequest, U extends OAuth2User>

Type Parameters:
R - what the service is asked with
U - the user it makes
All Known Implementing Classes:
DefaultOAuth2UserService, LinkingOAuth2UserService, OidcUserService

public interface OAuth2UserService<R extends OAuth2UserRequest, U extends OAuth2User>

Makes the user of a sign-in through an identity provider.

This is where an application decides who the provider's user is here: it may look them up, create them, refuse them, and return a principal named after its own account. DefaultOAuth2UserService and OidcUserService take the provider's word; LinkingOAuth2UserService ties the provider's user to a local one.

  • Method Summary

    Modifier and Type
    Method
    Description
    loadUser(R userRequest)
    The user.
  • Method Details

    • loadUser

      U loadUser(R userRequest)

      The user.

      • OAuth2AuthenticationException: to refuse the sign-in