JwtTokenExtractor.GetIdentityAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetIdentityAsync(String, String) |
获取与请求关联的声明标识。 |
GetIdentityAsync(String, String, String) |
获取与请求关联的声明标识。 |
GetIdentityAsync(String, String, String[]) |
获取与请求关联的声明标识。 |
GetIdentityAsync(String, String, String, String[]) |
获取与请求关联的声明标识。 |
GetIdentityAsync(String, String)
获取与请求关联的声明标识。
public System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> GetIdentityAsync (string authorizationHeader, string channelId);
member this.GetIdentityAsync : string * string -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Function GetIdentityAsync (authorizationHeader As String, channelId As String) As Task(Of ClaimsIdentity)
参数
- authorizationHeader
- String
格式为“Bearer [longString]”的原始 HTTP 标头。
- channelId
- String
在原始请求中验证的通道的 ID。
返回
Task<TResult> 对象。
适用于
GetIdentityAsync(String, String, String)
获取与请求关联的声明标识。
public System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> GetIdentityAsync (string scheme, string parameter, string channelId);
member this.GetIdentityAsync : string * string * string -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Function GetIdentityAsync (scheme As String, parameter As String, channelId As String) As Task(Of ClaimsIdentity)
参数
- scheme
- String
关联的方案。
- parameter
- String
令牌。
- channelId
- String
在原始请求中验证的通道的 ID。
返回
Task<TResult> 对象。
适用于
GetIdentityAsync(String, String, String[])
获取与请求关联的声明标识。
public System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> GetIdentityAsync (string authorizationHeader, string channelId, string[] requiredEndorsements);
member this.GetIdentityAsync : string * string * string[] -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Function GetIdentityAsync (authorizationHeader As String, channelId As String, requiredEndorsements As String()) As Task(Of ClaimsIdentity)
参数
- authorizationHeader
- String
格式为“Bearer [longString]”的原始 HTTP 标头。
- channelId
- String
在原始请求中验证的通道的 ID。
- requiredEndorsements
- String[]
所需的 JWT 认可。
返回
Task<TResult> 对象。
适用于
GetIdentityAsync(String, String, String, String[])
获取与请求关联的声明标识。
public System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> GetIdentityAsync (string scheme, string parameter, string channelId, string[] requiredEndorsements);
member this.GetIdentityAsync : string * string * string * string[] -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Function GetIdentityAsync (scheme As String, parameter As String, channelId As String, requiredEndorsements As String()) As Task(Of ClaimsIdentity)
参数
- scheme
- String
关联的方案。
- parameter
- String
令牌。
- channelId
- String
在原始请求中验证的通道的 ID。
- requiredEndorsements
- String[]
所需的 JWT 认可。
返回
Task<TResult> 对象。