Method: Twilio::REST::ClientCredentialProvider#to_auth_strategy
- Defined in:
- lib/twilio-ruby/credential/client_credential_provider.rb
#to_auth_strategy ⇒ Object
21 22 23 24 25 |
# File 'lib/twilio-ruby/credential/client_credential_provider.rb', line 21 def to_auth_strategy @orgs_token = ClientTokenManager.new(@grant_type, @client_id, @client_secret) if @orgs_token.nil? @auth_strategy = TokenAuthStrategy.new(@orgs_token) if @auth_strategy.nil? @auth_strategy end |