次の方法で共有


JsonWebToken.Subject Property

Definition

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.

Applies to