2 writes to Username
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
66
requestToken.
Username
= authenticatedIdentity.Name;
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
109
deserializedToken.
Username
= reader.ReadString();
4 references to Username
Microsoft.AspNetCore.Antiforgery (4)
Internal\DefaultAntiforgeryTokenGenerator.cs (3)
77
&& string.IsNullOrEmpty(requestToken.
Username
)
161
if (!comparer.Equals(requestToken.
Username
, currentUsername))
163
message = Resources.FormatAntiforgeryToken_UsernameMismatch(requestToken.
Username
, currentUsername);
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
148
writer.Write(token.
Username
!);