# File lib/fog/brightbox/oauth2.rb, line 16 def request_access_token(connection, credentials) token_strategy = credentials.best_grant_strategy connection.request( :path => "/token", :expects => 200, :headers => token_strategy.headers, :method => "POST", :body => Fog::JSON.encode(token_strategy.authorization_body_data) ) end