class Doorkeeper::GrantFlow::Flow
def default_response_mode
def default_response_mode response_mode_matches[0] end
def handles_grant_type?
def handles_grant_type? grant_type_matches.present? end
def handles_response_type?
def handles_response_type? response_type_matches.present? end
def initialize(name, **options)
def initialize(name, **options) @name = name @grant_type_matches = options[:grant_type_matches] @grant_type_strategy = options[:grant_type_strategy] @response_type_matches = options[:response_type_matches] @response_type_strategy = options[:response_type_strategy] @response_mode_matches = options[:response_mode_matches] end
def matches_grant_type?(value)
def matches_grant_type?(value) grant_type_matches === value end
def matches_response_mode?(value)
def matches_response_mode?(value) response_mode_matches.include?(value) end
def matches_response_type?(value)
def matches_response_type?(value) response_type_matches === value end