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

#initialize

Constructor Details

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

Instance Method Details

#authorization_body_dataObject



144
145
146
147
148
149
150
# File 'lib/fog/brightbox/oauth2.rb', line 144

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