다음을 통해 공유


Saml2SecurityTokenHandler.CreateClaimsIdentity Method

Definition

Creates claims from a Saml2 token.

protected virtual System.Security.Claims.ClaimsIdentity CreateClaimsIdentity (Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken samlToken, string issuer, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member CreateClaimsIdentity : Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken * string * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsIdentity
override this.CreateClaimsIdentity : Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityToken * string * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function CreateClaimsIdentity (samlToken As Saml2SecurityToken, issuer As String, validationParameters As TokenValidationParameters) As ClaimsIdentity

Parameters

issuer
String

The value to set Issuer

Returns

A ClaimsIdentity with claims from the saml statements.

Exceptions

If samlToken.Assertion is null.

Applies to