JwtSecurityTokenHandler.ClaimsIdentityFromJwt Method
Creates a ClaimsIdentity from a JwtSecurityToken.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Protected Function ClaimsIdentityFromJwt ( _
jwt As JwtSecurityToken, _
issuer As String, _
saveBootstrapContext As Boolean _
) As ClaimsIdentity
protected ClaimsIdentity ClaimsIdentityFromJwt(
JwtSecurityToken jwt,
string issuer,
bool saveBootstrapContext
)
protected:
ClaimsIdentity^ ClaimsIdentityFromJwt(
JwtSecurityToken^ jwt,
String^ issuer,
bool saveBootstrapContext
)
member ClaimsIdentityFromJwt :
jwt:JwtSecurityToken *
issuer:string *
saveBootstrapContext:bool -> ClaimsIdentity
protected function ClaimsIdentityFromJwt(
jwt : JwtSecurityToken,
issuer : String,
saveBootstrapContext : boolean
) : ClaimsIdentity
Parameters
jwt
Type: System.IdentityModel.Tokens.JwtSecurityTokenThe JwtSecurityToken to use as a Claim source.
issuer
Type: System.StringThe value to set Issuer
saveBootstrapContext
Type: System.BooleanFlag indicating if the JwtSecurityToken should be attached to BootstrapContext
Return Value
Type: System.Security.Claims.ClaimsIdentity
A ClaimsIdentity containing the Claims.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.