public PowerBiAuthenticator() { _powerBiOptions = new PowerBIOptions { ResourceUrl = "https://analysis.windows.net/powerbi/api", AuthorityUrl = "https://login.windows.net/common/oauth2/token", ApiUrl = "https://api.powerbi.com/", ClientId = "6fab63a6-30ca-475b-aeb3-697894cd0c32", ClientSecret = "XbBw0BEnpHbiz8YahRF4+bg1GWp9TQdPMQs9+GL5B7E=", Username = "******", Password = "******" }; }
public PowerBIService(IAadService aadService, IOptions <PowerBIOptions> pbiOptions, ILogger <PowerBIService> logger) { _aadService = aadService; _pbiOptions = pbiOptions.Value; _logger = logger; }
public PowerBIService(IOptions <PowerBIOptions> powerBIOptions, IAzureADService azureADService) { this.powerBIOptions = powerBIOptions.Value; this.azureADService = azureADService; this.embedTokentDict = new ConcurrentDictionary <string, EmbedToken>(); }