2 writes to Username
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
70requestToken.Username = authenticatedIdentity.Name;
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
169deserializedToken.Username = username;
5 references to Username
Microsoft.AspNetCore.Antiforgery (5)
Internal\DefaultAntiforgeryTokenGenerator.cs (3)
81&& string.IsNullOrEmpty(requestToken.Username) 169if (!comparer.Equals(requestToken.Username, currentUsername)) 171message = Resources.FormatAntiforgeryToken_UsernameMismatch(requestToken.Username, currentUsername);
Internal\DefaultAntiforgeryTokenSerializer.cs (2)
208var usernameByteCount = Encoding.UTF8.GetByteCount(token.Username!); 242offset += tokenBytes[offset..].Write7BitEncodedString(token.Username!);