Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface OAuth2UserService<R extends OAuth2UserRequest, U extends OAuth2User>
Known subtypesDefaultOAuth2UserService, LinkingOAuth2UserService, OidcUserService
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.
Type parameters
<R>- what the service is asked with
<U>- the user it makes
Methods
public abstract U loadUser(R userRequest) | The user. |
Method details
loadUser
public abstract U loadUser(R userRequest)The user.
OAuth2AuthenticationException: to refuse the sign-in