SamlSecurityTokenHandler.CreateClaims(SamlSecurityToken) 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 1.1 token.
protected:
virtual System::Security::Claims::ClaimsIdentity ^ CreateClaims(System::IdentityModel::Tokens::SamlSecurityToken ^ samlSecurityToken);
protected virtual System.Security.Claims.ClaimsIdentity CreateClaims (System.IdentityModel.Tokens.SamlSecurityToken samlSecurityToken);
abstract member CreateClaims : System.IdentityModel.Tokens.SamlSecurityToken -> System.Security.Claims.ClaimsIdentity
override this.CreateClaims : System.IdentityModel.Tokens.SamlSecurityToken -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function CreateClaims (samlSecurityToken As SamlSecurityToken) As ClaimsIdentity
Parameters
- samlSecurityToken
- SamlSecurityToken
A SamlSecurityToken that represents the security token from which to create the claims.
Returns
A ClaimsIdentity that contains the claims extracted from the token.
Exceptions
samlSecurityToken
is null
.
The Assertion property of samlSecurityToken
is null
.
The handler is not configured or an issuer name registry is not configured for the handler. (The Configuration property is null
or is set to a SecurityTokenHandlerConfiguration with an IssuerNameRegistry property that is null
.
The issuer name returned by the configured issuer name registry for the security token (samlSecurityToken
) is null
or empty.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για