Class: Fog::Brightbox::OAuth2::UserCredentialsStrategy

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

Overview

This passes user details through so the returned token carries the privileges of the user not account limited by the client

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



132
133
134
135
136
137
138
139
# File 'lib/fog/brightbox/oauth2.rb', line 132

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