Class: Bosh::Cli::Client::Uaa::TokenProvider
- Defined in:
- lib/cli/client/uaa/token_provider.rb
Instance Method Summary collapse
-
#initialize(auth_info, config, token_decoder, target) ⇒ TokenProvider
constructor
A new instance of TokenProvider.
- #token ⇒ Object
Constructor Details
#initialize(auth_info, config, token_decoder, target) ⇒ TokenProvider
Returns a new instance of TokenProvider.
8 9 10 11 12 13 |
# File 'lib/cli/client/uaa/token_provider.rb', line 8 def initialize(auth_info, config, token_decoder, target) @auth_info = auth_info @config = config @token_decoder = token_decoder @target = target end |
Instance Method Details
#token ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/cli/client/uaa/token_provider.rb', line 15 def token if @auth_info.client_auth? access_info = client_access_info else access_info = password_access_info end access_info.auth_header if access_info end |