Interface OAuthService


public interface OAuthService
The OAuthService provides methods useful for validating OAuth requests.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Return authorized scopes from input scopes.
    Returns the client_id from oauth2 request.
    getClientId(String... scopes)
    Returns the client_id from oauth2 request.
    Returns the User on whose behalf the request was made.
    Returns the User on whose behalf the request was made.
    Returns the User on whose behalf the request was made.
    Deprecated.
    OAuth1 is no longer supported
    boolean
    Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise.
    boolean
    Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise.
    boolean
    isUserAdmin(String... scopes)
    Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise.