Class: Rack::OAuth2::Server::Token::Response
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
65
66
67
68
69
70
71
72
|
# File 'lib/rack/oauth2/server/token.rb', line 65
def finish
attr_missing!
write MultiJson.dump(Util.compact_hash(protocol_params))
['Content-Type'] = 'application/json'
['Cache-Control'] = 'no-store'
['Pragma'] = 'no-cache'
super
end
|
#protocol_params ⇒ Object
61
62
63
|
# File 'lib/rack/oauth2/server/token.rb', line 61
def protocol_params
access_token.token_response
end
|