Class: GraphRbac

Inherits:
Object
  • Object
show all
Defined in:
lib/train/transports/clients/azure/graph_rbac.rb

Overview

Wrapper class for ::Azure::GraphRbac::Profiles::Latest::Client allowing custom configuration, for example, defining additional settings for the ::MsRestAzure::ApplicationTokenProvider.

Constant Summary collapse

AUTH_ENDPOINT =
MsRestAzure::AzureEnvironments::AzureCloud.active_directory_endpoint_url
API_ENDPOINT =
MsRestAzure::AzureEnvironments::AzureCloud.active_directory_graph_resource_id

Class Method Summary collapse

Class Method Details

.client(credentials) ⇒ Object



9
10
11
12
13
14
# File 'lib/train/transports/clients/azure/graph_rbac.rb', line 9

def self.client(credentials)
  credentials[:credentials] = ::MsRest::TokenCredentials.new(provider(credentials))
  credentials[:base_url] = API_ENDPOINT

  ::Azure::GraphRbac::Profiles::Latest::Client.new(credentials)
end