/Simple-IAuthenticationProvider-sample-for-OneDrive-SDK

Sample code for a simple IAuthenticationProvider implementation for an app that already has an access code

Primary LanguageC#

Sample IAuthenticationProvider to initialize OneDrive SDK client from access token

Using the sample AuthenticationHelper and SimpleAuthenticationProvider classes in this repo you can initialize a OneDriveClient instance for the OneDrive SDK using:

var authenticationHelper = new AuthenticationHelper();
var client = await authenticationHelper
	.GetSimpleAuthenticationProviderClientAsync(simpleAuthenticationProvider) as OneDriveClient;