class Rack::OAuth2::Server::Authorize::Response
Public Class Methods
new(request)
click to toggle source
Calls superclass method
Rack::OAuth2::Server::Abstract::Response::new
# File lib/rack/oauth2/server/authorize.rb, line 83 def initialize(request) @state = request.state super end
Public Instance Methods
approve!()
click to toggle source
# File lib/rack/oauth2/server/authorize.rb, line 92 def approve! @approval = true end
approved?()
click to toggle source
# File lib/rack/oauth2/server/authorize.rb, line 88 def approved? @approval end
finish()
click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/authorize.rb, line 104 def finish if approved? attr_missing! redirect redirect_uri_with_credentials end super end
protocol_params()
click to toggle source
# File lib/rack/oauth2/server/authorize.rb, line 96 def protocol_params {state: state, session_state: session_state} end
redirect_uri_with_credentials()
click to toggle source
# File lib/rack/oauth2/server/authorize.rb, line 100 def redirect_uri_with_credentials Util.redirect_uri(redirect_uri, protocol_params_location, protocol_params) end