Class ScriptableResourceAccess

    • Method Detail

      • getRequiredScopes

        public Promise<Set<String>,​ResponseException> getRequiredScopes​(Context context,
                                                                              Request request)
        Description copied from interface: ResourceAccess
        Returns the scopes required to access the resource.
        Specified by:
        getRequiredScopes in interface ResourceAccess
        Parameters:
        context - The current context which might be used to retrieve required scopes.
        request - The current OAuth2 request which might be used to retrieve required scopes.
        Returns:
        A promise containing the scopes required to access the resource. The promise may be completed with a ResponseException If an error occurred while resolving scope set. Should never return null.