class Doorkeeper::OAuth::ClientCredentialsRequest::Validation
def initialize(server, request)
def initialize(server, request) @server, @request = server, request validate end
def validate_client
def validate_client @request.client.present? end
def validate_scopes
def validate_scopes return true unless @request.original_scopes.present? ScopeChecker.valid?(@request.original_scopes, @server.scopes) end