Class
OAuthLoginService
Implements the OAuth login flow and token refresh.
Inheritance
- Object
- OAuthLoginService
Constructors
public OAuthLoginService() #Methods
public async Task<OAuthLoginResult> LoginAsync(OAuthLoginOptions options) #Returns:
Task<OAuthLoginResult>Performs an OAuth login flow.
Parameters
- options IntelligenceX.OpenAI.Auth.OAuthLoginOptions
- Login options.
public async Task<OAuthLoginResult> RefreshAsync(OAuthConfig config, AuthBundle bundle, CancellationToken cancellationToken = null) #Returns:
Task<OAuthLoginResult>Refreshes an OAuth access token.
Parameters
- config IntelligenceX.OpenAI.Auth.OAuthConfig
- OAuth configuration.
- bundle IntelligenceX.OpenAI.Auth.AuthBundle
- Existing auth bundle to update.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object