Class: Fog::Brightbox::OAuth2::UserCredentialsStrategy
- Inherits:
-
GrantTypeStrategy
- Object
- GrantTypeStrategy
- Fog::Brightbox::OAuth2::UserCredentialsStrategy
- 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
Constructor Details
This class inherits a constructor from Fog::Brightbox::OAuth2::GrantTypeStrategy
Instance Method Details
#authorization_body_data ⇒ Object
132 133 134 135 136 137 138 139 |
# File 'lib/fog/brightbox/oauth2.rb', line 132 def { "grant_type" => "password", "client_id" => @credentials.client_id, "username" => @credentials.username, "password" => @credentials.password } end |