Class OAuthTokenResponse
Implements
Inherited Members
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 |
| 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
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 |