Interface IOAuth2Token
The credentials which should be stored. This can be used to extend your Dapplo.Config.IIniSection extending interface.
Namespace: Dapplo.HttpExtensions.OAuth
Assembly: Dapplo.HttpExtensions.OAuth.dll
Syntax
public interface IOAuth2Token
Properties
| Improve this Doc View SourceOAuth2AccessToken
Bearer token for accessing OAuth 2 services
Declaration
[Display(Description = "Contains the OAuth 2 access token (encrypted)")]
string OAuth2AccessToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OAuth2AccessTokenExpires
Expire time for the AccessToken, this time (-HttpExtensionsGlobals.OAuth2ExpireOffset) is check to know if a new AccessToken needs to be generated with the RefreshToken
Declaration
[Display(Description = "When does the OAuth 2 AccessToken expire")]
DateTimeOffset OAuth2AccessTokenExpires { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
OAuth2RefreshToken
Token used to get a new Access Token
Declaration
[Display(Description = "Contains the OAuth 2 refresh token (encrypted)")]
string OAuth2RefreshToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |