class Doorkeeper::Config::Builder
def access_token_methods(*methods)
def access_token_methods(*methods) @config.instance_variable_set("@access_token_methods", methods) end
def build
def build @config end
def client_credentials(*methods)
def client_credentials(*methods) @config.instance_variable_set("@client_credentials", methods) end
def confirm_application_owner
def confirm_application_owner @config.instance_variable_set("@confirm_application_owner", true) end
def default_scopes(*scopes)
def default_scopes(*scopes) @config.instance_variable_set("@default_scopes", Doorkeeper::OAuth::Scopes.from_array(scopes)) end
def enable_application_owner(opts={})
def enable_application_owner(opts={}) @config.instance_variable_set("@enable_application_owner", true) confirm_application_owner if opts[:confirmation].present? && opts[:confirmation] end
def initialize(&block)
def initialize(&block) @config = Config.new instance_eval(&block) end
def optional_scopes(*scopes)
def optional_scopes(*scopes) @config.instance_variable_set("@optional_scopes", Doorkeeper::OAuth::Scopes.from_array(scopes)) end
def use_refresh_token
def use_refresh_token @config.instance_variable_set("@refresh_token_enabled", true) end