Class: Rack::OAuth2::Server::Token::Response
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
80
81
82
83
84
85
86
87
|
# File 'lib/rack/oauth2/server/token.rb', line 80
def finish
attr_missing!
write Util.compact_hash(protocol_params).to_json
['Content-Type'] = 'application/json'
['Cache-Control'] = 'no-store'
['Pragma'] = 'no-cache'
super
end
|
#protocol_params ⇒ Object
76
77
78
|
# File 'lib/rack/oauth2/server/token.rb', line 76
def protocol_params
access_token.token_response
end
|