public DropBoxStorageProviderSession(DropBoxToken token, DropBoxConfiguration config, OAuthConsumerContext consumerContext, IStorageProviderService service) { SessionToken = token; ServiceConfiguration = config; Service = service; Context = consumerContext; }
public DropBoxStorageProviderSession(DropBoxToken token, DropBoxConfiguration config, OAuthConsumerContext consumerContext, IStorageProviderService service) { SessionToken = token; ServiceConfiguration = config; Service = service; Context = consumerContext; }
private DropBoxStorageProviderSession Authorize(DropBoxToken token, DropBoxConfiguration configuration) { // Get a valid dropbox session through oAuth authorization var session = BuildSessionFromAccessToken(token, configuration); //( Get a valid root object return(GetRootBySessionExceptionHandled(session)); }
public DropBoxStorageProviderSession BuildSessionFromAccessToken(DropBoxToken token, DropBoxConfiguration configuration) { // build the consumer context var consumerContext = new OAuthConsumerContext(token.BaseTokenInformation.ConsumerKey, token.BaseTokenInformation.ConsumerSecret); // build the session var session = new DropBoxStorageProviderSession(token, configuration, consumerContext, this); // go aahead return(session); }
public DropBoxStorageProviderSession BuildSessionFromAccessToken(DropBoxToken token, DropBoxConfiguration configuration) { // build the consumer context var consumerContext = new OAuthConsumerContext(token.BaseTokenInformation.ConsumerKey, token.BaseTokenInformation.ConsumerSecret); // build the session var session = new DropBoxStorageProviderSession(token, configuration, consumerContext, this); // go aahead return session; }
private DropBoxStorageProviderSession Authorize(DropBoxToken token, DropBoxConfiguration configuration) { // Get a valid dropbox session through oAuth authorization var session = BuildSessionFromAccessToken(token, configuration); //( Get a valid root object return GetRootBySessionExceptionHandled(session); }