Compartilhar via


SamlSecurityTokenHandler.CreateClaimsIdentities Method

Definition

Creates claims from a Saml securityToken.

protected virtual System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> CreateClaimsIdentities (Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken samlToken, string issuer, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member CreateClaimsIdentities : Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken * string * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> seq<System.Security.Claims.ClaimsIdentity>
override this.CreateClaimsIdentities : Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken * string * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> seq<System.Security.Claims.ClaimsIdentity>
Protected Overridable Function CreateClaimsIdentities (samlToken As SamlSecurityToken, issuer As String, validationParameters As TokenValidationParameters) As IEnumerable(Of ClaimsIdentity)

Parameters

samlToken
SamlSecurityToken

A SamlSecurityToken that will be used to create the claims.

issuer
String

The value to set Issuer

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

A IEnumerable<T> containing the claims from the SamlSecurityToken.

Exceptions

Applies to