class Rack::OAuth2::Server::Token::Response

Public Instance Methods

finish() click to toggle source
Calls superclass method
# File lib/rack/oauth2/server/token.rb, line 80
def finish
  attr_missing!
  write Util.compact_hash(protocol_params).to_json
  header['Content-Type'] = 'application/json'
  header['Cache-Control'] = 'no-store'
  header['Pragma'] = 'no-cache'
  super
end
protocol_params() click to toggle source
# File lib/rack/oauth2/server/token.rb, line 76
def protocol_params
  access_token.token_response
end