AgentClaims.GetIncomingAudience(ClaimsIdentity) 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.
Retrieves the Audience from the given incoming identity.
public static string GetIncomingAudience(this System.Security.Claims.ClaimsIdentity identity);
static member GetIncomingAudience : System.Security.Claims.ClaimsIdentity -> string
<Extension()>
Public Function GetIncomingAudience (identity As ClaimsIdentity) As String
Parameters
- identity
- ClaimsIdentity
The claims identity containing the token information.
Returns
The Audience as a string, or null if not found.
Remarks
For requests the Audience is in the 'aud' claim of the JWT token.