Class OAuthRefreshTokenGrant
Access tokens eventually expire; however some grants respond with a refresh token which enables the client to get a new access token without requiring the user to be redirected.
Inheritance
object
OAuthRefreshTokenGrant
Implements
Namespace: StylelabsStylelabs.MSdkWebClientAuthentication
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
RequestResponse
public class OAuthRefreshTokenGrant : IOAuthGrant
Remarks
For more information see: https://alexbilbie.com/guide-to-oauth-2-grants/.
Properties
ClientId
Gets or sets the client id.
Declaration
RequestResponse
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
string |
ClientSecret
Gets or sets the client secret.
Declaration
RequestResponse
public string ClientSecret { get; set; }
Property Value
Type | Description |
---|---|
string |
RefreshToken
Gets or sets a refresh token that can be used to acquire a new access token when the original expires.
Declaration
RequestResponse
public string RefreshToken { get; set; }
Property Value
Type | Description |
---|---|
string |