Improve this Doc View Source

Class OAuth2Settings

Settings for the OAuth 2 protocol

Inheritance
System.Object
OAuth2Settings
Namespace:Dapplo.HttpExtensions.OAuth
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class OAuth2Settings : BaseOAuthSettings, ICodeReceiverSettings

Properties

| Improve this Doc View Source

IsAccessTokenExpired

Return true if the access token is expired. Important "side-effect": if true is returned the AccessToken will be set to null!

Declaration
public bool IsAccessTokenExpired { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Token

The actualy token information, placed in an interface for usage with the Dapplo.Config project the OAuth2Token, a default implementation is assigned when the settings are created. When using a Dapplo.Config IIniSection for your settings, this can/should be overwritten with your interface, and make it extend IOAuth2Token

Declaration
public IOAuth2Token Token { get; set; }
Returns
Type Description
IOAuth2Token