Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public interface OAuth2User

Known subtypesDefaultOAuth2User, DefaultOidcUser, OidcUser

A user as an identity provider described them.

Methods

public abstract Map<String, Object> getAttributes()What the provider said of the user, by name.
public abstract Collection<? extends GrantedAuthority> getAuthorities()
public abstract String getName()What the user is called here: the value of the provider’s name attribute, or the local account an OAuth2UserService tied them to.

Method details

getAttributes

public abstract Map<String, Object> getAttributes()
What the provider said of the user, by name.

getAuthorities

public abstract Collection<? extends GrantedAuthority> getAuthorities()

getName

public abstract String getName()
What the user is called here: the value of the provider’s name attribute, or the local account an OAuth2UserService tied them to.