Class TokenInfo
Information about an OAuth2 token.
Inherited Members
Namespace: DeviceOAuth2
Assembly: DeviceOAuth2.dll
Syntax
public sealed class TokenInfo
Properties
| Improve this Doc View SourceAccessToken
The access token used by the app to access the endpoint's associated api and authorized scope.
Declaration
public string AccessToken { get; set; }
Property Value
Type | Description |
---|---|
String |
CanRefresh
Indicator if this token is refreshable
Declaration
public bool CanRefresh { get; }
Property Value
Type | Description |
---|---|
Boolean |
Expiry
The Expiration time of the access token. Will be DateTime.MaxValue if refresh is unknown or unsupported by the endpoint.
Declaration
public DateTime Expiry { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
RefreshToken
A token that can be used to refresh the access token. Null if endpoint doesn't support refresh.
Declaration
public string RefreshToken { get; set; }
Property Value
Type | Description |
---|---|
String |
Scheme
The Auth scheme to use with the AccessToken.
Declaration
public string Scheme { get; set; }
Property Value
Type | Description |
---|---|
String |
Site
The name of the site that the token is associated with.
Declaration
public string Site { get; set; }
Property Value
Type | Description |
---|---|
String |