1. Stylelabs.M.Sdk.WebClient.Authentication

Class OAuthPasswordGrant

This grant is a great user experience for trusted first party clients both on the web and in native device applications. Also known as "Resource owner credentials grant".

Inheritance

object

OAuthPasswordGrant

Implements

IOAuthGrant

Namespace: StylelabsStylelabs.MSdkWebClientAuthentication

Assembly: Stylelabs.M.Sdk.WebClient.dll

Syntax

public class OAuthPasswordGrant : 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

Password

Gets or sets the Sitecore Content Hub user's password.

Declaration

public string Password { get; set; }

Property Value

TypeDescription
string

UserName

Gets or sets the Sitecore Content Hub user's username.

Declaration

public string UserName { get; set; }

Property Value

TypeDescription
string

Implements

IOAuthGrant

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