Class: Fog::Brightbox::OAuth2::RefreshTokenStrategy

Inherits:
GrantTypeStrategy show all
Defined in:
lib/fog/brightbox/oauth2.rb

Overview

This strategy attempts to use a refresh_token gained during an earlier request to reuse the credentials given originally

Instance Method Summary collapse

Methods inherited from GrantTypeStrategy

#authorization_header, #headers, #initialize

Constructor Details

This class inherits a constructor from Fog::Brightbox::OAuth2::GrantTypeStrategy

Instance Method Details

#authorization_body_dataObject



193
194
195
196
197
198
# File 'lib/fog/brightbox/oauth2.rb', line 193

def authorization_body_data
  {
    "grant_type"    => "refresh_token",
    "refresh_token" => @credentials.refresh_token
  }
end