public AzureADTokenCache(IAzureADConfig aadConfig, ITraceLogger iLogger)
 {
     _aadConfig      = aadConfig;
     _authContext    = new AuthenticationContext(string.Format(AzureADConstants.AuthorityTenantFormat, _aadConfig.TenantDomain));
     _appCredentials = new ClientCredential(_aadConfig.ClientId, _aadConfig.ClientSecret);
     _iLogger        = iLogger;
 }
예제 #2
0
        /// <summary>
        /// Initialize the Graph API Executor with Azure AD Config settings and the Diagnostic Logger
        /// </summary>
        /// <param name="config"></param>
        /// <param name="logger"></param>
        public ReportingStream(AzureEnvironment environment, IAzureADConfig config, ITraceLogger logger)
        {
            var authenticationEndpoint = environment.GetAzureADLoginEndPoint();
            var endpoint = string.Format(AzureADConstants.AuthorityTenantFormat, authenticationEndpoint, config.TenantDomain);

            this.ADConfig   = config;
            this.Logger     = logger;
            this.OAuthCache = new AzureADTokenCache(endpoint, config, logger);
        }
예제 #3
0
 /// <summary>
 /// Supply Azure AD Credentials and associated logging utility
 /// </summary>
 /// <param name="config"></param>
 /// <param name="logger"></param>
 public ReportingProcessor(IAzureADConfig config, ITraceLogger logger)
 {
     Logger         = logger;
     AzureADConfig  = config;
     ResponseReader = new ReportingStream(config, logger);
 }
 /// <summary>
 /// Supply Azure AD Credentials and associated logging utility
 /// </summary>
 /// <param name="environment">The Azure AD environment to which this is bound</param>
 /// <param name="config"></param>
 /// <param name="logger"></param>
 public ReportingProcessor(AzureEnvironment environment, IAzureADConfig config, ITraceLogger logger)
 {
     Logger         = logger;
     AzureADConfig  = config;
     ResponseReader = new ReportingStream(environment, config, logger);
 }
 public SampleReportingProcessor(IAzureADConfig _adconfig, ITraceLogger _logger) : this()
 {
     ADConfig = _adconfig;
     Logger   = _logger;
 }
 /// <summary>
 /// Initialize the Graph API Executor with Azure AD Config settings and the Diagnostic Logger
 /// </summary>
 /// <param name="config"></param>
 /// <param name="logger"></param>
 public ReportingStream(IAzureADConfig config, ITraceLogger logger)
 {
     this.ADConfig   = config;
     this.Logger     = logger;
     this.OAuthCache = new AzureADTokenCache(config, logger);
 }
 public AzureADTokenCache(string authenticationEndpoint, IAzureADConfig aadConfig, ITraceLogger iLogger)
 {
     _aadConfig   = aadConfig;
     _authContext = new AuthenticationContext(authenticationEndpoint);
     _iLogger     = iLogger;
 }