class Doorkeeper::Server
def authorization_request(strategy)
def authorization_request(strategy) klass = Request.authorization_strategy(strategy) klass.new(self) end
def client
def client @client ||= OAuth::Client.authenticate(credentials) end
def credentials
def credentials methods = Doorkeeper.config.client_credentials_methods @credentials ||= OAuth::Client::Credentials.from_request(context.request, *methods) end
def current_resource_owner
def current_resource_owner context.send :current_resource_owner end
def initialize(context)
def initialize(context) @context = context end
def parameters
def parameters context.request.parameters end
def resource_owner
def resource_owner context.send :resource_owner_from_credentials end
def token_request(strategy)
def token_request(strategy) klass = Request.token_strategy(strategy) klass.new(self) end