Example #1
0
 public AuthCommand(IYAuthProvider authProvider,
                    IYHttpRequestHandler client,
                    IOptions <YMicrosoftIdentityOptions> azureAdOptions)
 {
     AzureAdOptions = azureAdOptions.Value;
     AuthProvider   = authProvider;
     Client         = client;
 }
Example #2
0
 public YHttpRequestHandler(IYAuthProvider authProvider, IHttpClientFactory httpClientFactory,
                            IOptions <YGraphOptions> graphOptions,
                            IOptions <YHostOptions> apiOptions,
                            IOptions <YMicrosoftIdentityOptions> azureAdOptions)
 {
     this.authProvider      = authProvider;
     this.httpClientFactory = httpClientFactory;
     this.graphOptions      = graphOptions.Value;
     this.apiOptions        = apiOptions.Value;
     this.azureAdOptions    = azureAdOptions.Value;
 }
Example #3
0
 public IndexModel(IYAuthProvider authProvider, IHttpClientFactory httpClientFactory,
                   IConfiguration configuration,
                   IYHttpRequestHandler client, IYResourceClient resourceClient, IOptions <YMicrosoftIdentityOptions> azureAdOptions)
 {
     this.authProvider      = authProvider;
     this.httpClientFactory = httpClientFactory;
     this.configuration     = configuration;
     this.client            = client;
     this.resourceClient    = resourceClient;
     this.httpClient        = this.httpClientFactory.CreateClient();
     this.options           = azureAdOptions.Value;
 }
Example #4
0
 public PurviewController(IYAuthProvider authProvider,
                          IOptions <YMicrosoftIdentityOptions> azureAdOptions,
                          IYHttpRequestHandler client,
                          IOptions <YPurviewOptions> hostOptions,
                          IYEngineProvider engineProvider,
                          DataFactoriesController dataFactoriesController)
 {
     this.authProvider      = authProvider;
     this.options           = azureAdOptions.Value;
     this.client            = client;
     this.hostOptions       = hostOptions.Value;
     this.engineProvider    = engineProvider;
     this.factoryController = dataFactoriesController;
 }
 public DataFactoriesController(IYResourceClient resourceClient,
                                IYHttpRequestHandler client,
                                IYEngineProvider engineProvider,
                                IOptions <YMicrosoftIdentityOptions> azureAdOptions,
                                KeyVaultsController keyVaultsController,
                                IYDataSourcesService dataSourcesService,
                                IYAuthProvider authProvider)
 {
     this.resourceClient      = resourceClient;
     this.client              = client;
     this.engineProvider      = engineProvider;
     this.keyVaultsController = keyVaultsController;
     this.dataSourcesService  = dataSourcesService;
     this.authProvider        = authProvider;
     this.options             = azureAdOptions.Value;
 }
Example #6
0
 public YResourceClient(IYAuthProvider authProvider, IYHttpRequestHandler requestHandler, IOptions <YMicrosoftIdentityOptions> options)
 {
     this.authProvider   = authProvider;
     this.requestHandler = requestHandler;
     this.options        = options.Value;
 }
Example #7
0
 public IndexModel(IYAuthProvider authProvider, IHttpClientFactory httpClientFactory)
 {
     this.authProvider      = authProvider;
     this.httpClientFactory = httpClientFactory;
     this.httpClient        = this.httpClientFactory.CreateClient();
 }
Example #8
0
 public EngineShowCommand(IYAuthProvider authProvider,
                          IYHttpRequestHandler httpRequestHandler,
                          IOptions <YMicrosoftIdentityOptions> identityOptions) : base(authProvider, httpRequestHandler, identityOptions)
 {
 }