Aydsko iRacing Data API
Show / Hide Table of Contents

Class OAuthTokenResponse

Inheritance
object
OAuthTokenResponse
Implements
IEquatable<OAuthTokenResponse>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Aydsko.iRacingData
Assembly: Aydsko.iRacingData.dll
Syntax
public record OAuthTokenResponse : IEquatable<OAuthTokenResponse>

Constructors

OAuthTokenResponse(string, string, int, string?, int?, string?)

Declaration
public OAuthTokenResponse(string AccessToken, string TokenType, int ExpiresInSeconds, string? RefreshToken, int? RefreshTokenExpiresInSeconds, string? Scope)
Parameters
Type Name Description
string AccessToken

Used to authorize a connection to the server.

string TokenType

This will always be the string Bearer.

int ExpiresInSeconds

Number of seconds after which this token will no longer be considered valid.

string RefreshToken

Value to use as the token for a Refresh Token Grant to obtain new access and refresh tokens. Will be null if the server has not issued a refresh token.

int? RefreshTokenExpiresInSeconds

Number of seconds after which this token will no longer be considered valid. Will be null if the server has not issued a refresh token.

string Scope

One or more scopes, separated by white space, granted to the access token. If none are granted this field will be null.

See Also
https://oauth.iracing.com/oauth2/book/token_endpoint.html

Properties

AccessToken

Used to authorize a connection to the server.

Declaration
[JsonPropertyName("access_token")]
public string AccessToken { get; init; }
Property Value
Type Description
string

ExpiresInSeconds

Number of seconds after which this token will no longer be considered valid.

Declaration
[JsonPropertyName("expires_in")]
public int ExpiresInSeconds { get; init; }
Property Value
Type Description
int

RefreshToken

Value to use as the token for a Refresh Token Grant to obtain new access and refresh tokens. Will be null if the server has not issued a refresh token.

Declaration
[JsonPropertyName("refresh_token")]
public string? RefreshToken { get; init; }
Property Value
Type Description
string

RefreshTokenExpiresInSeconds

Number of seconds after which this token will no longer be considered valid. Will be null if the server has not issued a refresh token.

Declaration
[JsonPropertyName("refresh_token_expires_in")]
public int? RefreshTokenExpiresInSeconds { get; init; }
Property Value
Type Description
int?

Scope

One or more scopes, separated by white space, granted to the access token. If none are granted this field will be null.

Declaration
[JsonPropertyName("scope")]
public string? Scope { get; init; }
Property Value
Type Description
string

TokenType

This will always be the string Bearer.

Declaration
[JsonPropertyName("token_type")]
public string TokenType { get; init; }
Property Value
Type Description
string

Implements

IEquatable<T>

See Also

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