lib/fog/azurerm/credentials.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/credentials.rb in fog-azure-rm-0.1.1
- old
+ new
@@ -18,10 +18,10 @@
def self.get_new_credentials(tenant_id, client_id, client_secret)
@tenant_id = tenant_id
@client_id = client_id
@client_secret = client_secret
return if @tenant_id.nil? || @client_id.nil? || @client_secret.nil?
- @token_provider = MsRestAzure::ApplicationTokenProvider.new(@tenant_id, @client_id, @client_secret)
+ @token_provider = MsRestAzure::ApplicationTokenProvider.new(@tenant_id, @client_id, @client_secret, active_directory_service_settings)
@credentials = MsRest::TokenCredentials.new(@token_provider)
@credentials
end
def self.new_management_credential?(tenant_id, client_id, client_secret)