Class: Rack::OAuth2::Server::Token::Response
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
69
70
71
72
73
74
75
76
|
# File 'lib/rack/oauth2/server/token.rb', line 69
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
65
66
67
|
# File 'lib/rack/oauth2/server/token.rb', line 65
def protocol_params
access_token.token_response
end
|