Table of Contents

Class UserAssertion

Namespace
Microsoft.Identity.Client
Assembly
Microsoft.Identity.Client.dll
public sealed class UserAssertion
Inheritance
UserAssertion
Inherited Members

Constructors

UserAssertion(string)

Constructor from a JWT assertion. For other assertion types (SAML), use the other constructor UserAssertion(string, string)

public UserAssertion(string jwtBearerToken)

Parameters

jwtBearerToken string

JWT bearer token used to access the Web application itself

UserAssertion(string, string)

Constructor of a UserAssertion specifying the assertionType in addition to the assertion

public UserAssertion(string assertion, string assertionType)

Parameters

assertion string

Assertion representing the user.

assertionType string

Type of the assertion representing the user. Accepted types are currently:

  • urn:ietf:params:oauth:grant-type:jwt-bearerJWT bearer token. Passing this is equivalent to using the other (simpler) constructor
  • urn:ietf:params:oauth:grant-type:saml1_1-bearerSAML 1.1 bearer token
  • urn:ietf:params:oauth:grant-type:saml2-bearerSAML 2 bearer token

Properties

Assertion

Gets the assertion.

public string Assertion { get; }

Property Value

string

AssertionType

Gets the assertion type.

public string AssertionType { get; }

Property Value

string

See Also