SamlSecurityTokenHandler.CreateClaimsIdentities Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- validationParameters
- TokenValidationParameters
The TokenValidationParameters to be used for validating the token.
Returns
A IEnumerable<T> containing the claims from the SamlSecurityToken.
Exceptions
if Assertion is null.