Class: Fog::Brightbox::OAuth2::ClientCredentialsStrategy

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

Overview

This implements client based authentication/authorization based on the existing trust relationship using the ‘none` grant type.

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



117
118
119
120
121
122
# File 'lib/fog/brightbox/oauth2.rb', line 117

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