public AppFlowMetadata(Guid userId, IGoogleOAuthDataStore dataStore) { _userId = userId; _flow = new ForceOfflineGoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer { ClientSecrets = new ClientSecrets { ClientId = ConsumerKey, ClientSecret = ConsumerSecret }, Scopes = new[] { AnalyticsReportingService.Scope.AnalyticsReadonly }, DataStore = dataStore }); }
public GoogleAuthorizer(IGoogleOAuthDataStore googleOAuthDataStore) { _googleOAuthDataStore = googleOAuthDataStore; }