2 writes to Username
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
70requestToken.Username = authenticatedIdentity.Name;
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
169deserializedToken.Username = username;
6 references to Username
Microsoft.AspNetCore.Antiforgery (6)
Internal\DefaultAntiforgeryTokenGenerator.cs (4)
81&& string.IsNullOrEmpty(requestToken.Username) 169if (!comparer.Equals(requestToken.Username, currentUsername)) 173: Resources.FormatAntiforgeryToken_UsernameMismatch(requestToken.Username, currentUsername); 204&& (token.ClaimUid is not null || !string.IsNullOrEmpty(token.Username));
Internal\DefaultAntiforgeryTokenSerializer.cs (2)
208var usernameByteCount = Encoding.UTF8.GetByteCount(token.Username!); 242offset += tokenBytes[offset..].Write7BitEncodedString(token.Username!);