1. Stylelabs.M.Sdk.WebClient.Authentication

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

IOAuthGrant

Namespace: StylelabsStylelabs.MSdkWebClientAuthentication

Assembly: Stylelabs.M.Sdk.WebClient.dll

Syntax

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

public string ClientId { get; set; }

Property Value

TypeDescription
string

ClientSecret

Gets or sets the client secret.

Declaration

public string ClientSecret { get; set; }

Property Value

TypeDescription
string

RefreshToken

Gets or sets a refresh token that can be used to acquire a new access token when the original expires.

Declaration

public string RefreshToken { get; set; }

Property Value

TypeDescription
string

Implements

IOAuthGrant

If you have suggestions for improving this article, let us know!