public OneDriveUser(string token) { RefreshToken = token; Api = RestService.For <IMicrosoftGraphApi>( "https://graph.microsoft.com", new RefitSettings { JsonSerializerSettings = new JsonSerializerSettings(), AuthorizationHeaderValueGetter = () => Task.FromResult(AccessToken) }); }
public OnedriveUser(string token) { RefeshToken = token; Api = RestService.For <IMicrosoftGraphApi>( new HttpClient(new AuthenticatedHttpClientHandler(() => AccessToken)) { BaseAddress = new Uri("https://graph.microsoft.com") }, new RefitSettings() { JsonSerializerSettings = new JsonSerializerSettings() }); }
public AzureDirectoryProviderService(IMicrosoftGraphApi graphApi) { _graphApi = graphApi; }
public AzureDirectoryProviderService(IMicrosoftGraphApi graphApi, ILogger logger) { _graphApi = graphApi; _logger = logger; }