JwtTokenExtractor.GetIdentityAsync 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.
Overloads
GetIdentityAsync(String, String) |
Gets the claims identity associated with a request. |
GetIdentityAsync(String, String, String) |
Gets the claims identity associated with a request. |
GetIdentityAsync(String, String, String[]) |
Gets the claims identity associated with a request. |
GetIdentityAsync(String, String, String, String[]) |
Gets the claims identity associated with a request. |
GetIdentityAsync(String, String)
Gets the claims identity associated with a request.
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)
Parameters
- authorizationHeader
- String
The raw HTTP header in the format: "Bearer [longString]".
- channelId
- String
The Id of the channel being validated in the original request.
Returns
A Task<TResult> object.
Applies to
GetIdentityAsync(String, String, String)
Gets the claims identity associated with a request.
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)
Parameters
- scheme
- String
The associated scheme.
- parameter
- String
The token.
- channelId
- String
The Id of the channel being validated in the original request.
Returns
A Task<TResult> object.
Applies to
GetIdentityAsync(String, String, String[])
Gets the claims identity associated with a request.
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)
Parameters
- authorizationHeader
- String
The raw HTTP header in the format: "Bearer [longString]".
- channelId
- String
The Id of the channel being validated in the original request.
- requiredEndorsements
- String[]
The required JWT endorsements.
Returns
A Task<TResult> object.
Applies to
GetIdentityAsync(String, String, String, String[])
Gets the claims identity associated with a request.
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)
Parameters
- scheme
- String
The associated scheme.
- parameter
- String
The token.
- channelId
- String
The Id of the channel being validated in the original request.
- requiredEndorsements
- String[]
The required JWT endorsements.
Returns
A Task<TResult> object.