JsonWebToken.Subject Property
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.
Gets the 'value' of the 'sub' claim from the payload.
public string Subject { get; }
member this.Subject : string
Public ReadOnly Property Subject As String
Property Value
Remarks
See: https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2. Identifies the principal that is the subject of the JWT.
If the 'sub' claim is not found, an empty string is returned.