AgentClaims.GetIncomingAudience(ClaimsIdentity) Method

Definition

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.

Applies to