Saml2SecurityTokenHandler.CreateClaimsIdentity 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 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
- samlToken
- Saml2SecurityToken
The Saml2SecurityToken.
- validationParameters
- TokenValidationParameters
creates the ClaimsIdentity using CreateClaimsIdentity(SecurityToken, String).
Returns
A ClaimsIdentity with claims from the saml statements.
Exceptions
If samlToken
.Assertion is null.