Class: Bosh::Cli::Client::Uaa::PasswordAccessInfo
- Inherits:
-
AccessInfo
- Object
- AccessInfo
- Bosh::Cli::Client::Uaa::PasswordAccessInfo
- Defined in:
- lib/cli/client/uaa/access_info.rb
Constant Summary
Constants inherited from AccessInfo
AccessInfo::EXPIRATION_DEADLINE_IN_SECONDS
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AccessInfo
#auth_header, #expires_soon?, #initialize, #refresh_token, #to_hash, #token_data, #was_issued_for?
Constructor Details
This class inherits a constructor from Bosh::Cli::Client::Uaa::AccessInfo
Class Method Details
.create(full_access_token, refresh_token, token_decoder) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/cli/client/uaa/access_info.rb', line 49 def self.create(full_access_token, refresh_token, token_decoder) token_type, access_token = full_access_token.split(' ') return nil unless token_type && access_token token_info = CF::UAA::TokenInfo.new({ access_token: access_token, refresh_token: refresh_token, token_type: token_type, }) new(token_info, token_decoder) end |
Instance Method Details
#username ⇒ Object
61 62 63 |
# File 'lib/cli/client/uaa/access_info.rb', line 61 def username token_data['user_name'] end |