/// <summary> /// Default callback when this provider obtains a new access token or /// refresh token from the OAuth server. /// </summary> /// <param name="provider">The provider.</param> protected static void TokensUpdatedCallback(AdsOAuthProvider provider) { }
/// <summary> /// Sets the OAuth provider. /// </summary> /// <param name="config">The config.</param> private void SetOAuthProvider(AppConfigBase config) { if (config.OAuth2Mode == OAuth2Flow.APPLICATION) { this.OAuthProvider = new OAuth2ProviderForApplications(config); } else { this.OAuthProvider = new OAuth2ProviderForServiceAccounts(config); } }
/// <summary> /// Initializes a new instance of the OAuth2ClientMessageInspector class. /// </summary> public OAuth2ClientMessageInspector(AdsOAuthProvider oauthProvider) { this.oauthProvider = oauthProvider; }