class Bosh::Cli::Client::Uaa::ClientTokenIssuer
Public Class Methods
new(auth_info, token_decoder)
click to toggle source
# File lib/cli/client/uaa/client_token_issuer.rb, line 8 def initialize(auth_info, token_decoder) @auth_info = auth_info @token_decoder = token_decoder end
Public Instance Methods
access_info(_)
click to toggle source
# File lib/cli/client/uaa/client_token_issuer.rb, line 17 def access_info(_) token = token_issuer.client_credentials_grant ClientAccessInfo.new(token, @token_decoder) end
prompts()
click to toggle source
# File lib/cli/client/uaa/client_token_issuer.rb, line 13 def prompts {} end
refresh(_)
click to toggle source
# File lib/cli/client/uaa/client_token_issuer.rb, line 22 def refresh(_) # For client credentials there is no refresh token, so obtain access token again access_info(_) end
Private Instance Methods
token_issuer()
click to toggle source
# File lib/cli/client/uaa/client_token_issuer.rb, line 29 def token_issuer @token_issuer ||= CF::UAA::TokenIssuer.new( @auth_info.url, @auth_info.client_id, @auth_info.client_secret, { ssl_ca_file: @auth_info.ssl_ca_file } ) end