API Integrator 2016 .NET Edition
API Integrator 2016 .NET Edition
Questions / Feedback?

AfterOAuth Event

Fires after an OAuth authentication attempt has finished.

Syntax

[VB.NET]
Public Event OnAfterOAuth As OnAfterOAuthHandler
[C#]
public event OnAfterOAuthHandler OnAfterOAuth;

public delegate void OnAfterOAuthHandler(object sender, ApiclientAfterOAuthEventArgs e);

class ApiclientAfterOAuthEventArgs : EventArgs {
  int GrantType {get;}
  string ClientId {get;}
  string ClientSecret {get;}
  string ServerAuthURL {get;}
  string ServerTokenURL {get;}
  string AuthorizationScope {get;}
  string Token {get;}
  string RefreshToken {get;}
  long Timestamp {get;}
  long ExpiresIn {get;}
}

Remarks

This event can be used to access OAuth parameters after authentication has completed. For instance the RefreshToken parameter can be queried in the event and stored for later use. If the OAuthCacheFile property is set to a valid file path, the OAuth parameters will be stored there as well.

Unlike the BeforeOAuth event, this event cannot be used to override the parameters for the OAuth session. The parameters are read-only.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
API Integrator 2016 .NET Edition - Version 16.0 [Build 7709]