Aydsko iRacing Data API
Show / Hide Table of Contents

Interface IOAuthTokenSource

An implementation should be available to request tokens from the iRacing authentication service.

Namespace: Aydsko.iRacingData
Assembly: Aydsko.iRacingData.dll
Syntax
public interface IOAuthTokenSource
Remarks

The implementation should handle securely storing tokens while they are valid to reduce the requirement to call the service or prompt the user.

Methods

GetTokenAsync(CancellationToken)

Retrieve the token from the authentication service.

Declaration
Task<OAuthTokenValue> GetTokenAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

A token to cancel the operation.

Returns
Type Description
Task<OAuthTokenValue>

The token and the time it expires in an OAuthTokenValue object.

See Also

https://oauth.iracing.com/oauth2/book/token_endpoint.html
In this article
Back to top Generated by DocFX