module Rack::OAuth2::Server::Authorize::ErrorHandler
Public Class Methods
included(klass)
click to toggle source
# File lib/rack/oauth2/server/authorize/error.rb, line 6 def self.included(klass) klass.send :attr_accessor, :redirect_uri, :state, :protocol_params_location end
Public Instance Methods
finish()
click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/authorize/error.rb, line 14 def finish if redirect_uri.present? && protocol_params_location.present? super do |response| response.redirect Util.redirect_uri(redirect_uri, protocol_params_location, protocol_params) end else raise self end end
protocol_params()
click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/authorize/error.rb, line 10 def protocol_params super.merge(state: state) end