9 writes to ClaimUid
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
65requestToken.ClaimUid = extractClaimUidBytesResult ? new BinaryBlob(256, claimUidBytes) : null;
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
158deserializedToken.ClaimUid = new BinaryBlob(
Microsoft.AspNetCore.Antiforgery.Microbenchmarks (2)
Benchmarks\AntiforgeryTokenGeneratorBenchmarks.cs (1)
87ClaimUid = claimUid is not null ? new BinaryBlob(256, claimUid) : null
Benchmarks\AntiforgeryTokenSerializerBenchmarks.cs (1)
31ClaimUid = new BinaryBlob(AntiforgeryToken.ClaimUidBitLength),
Microsoft.AspNetCore.Antiforgery.Test (5)
AntiforgeryTokenTest.cs (2)
37token.ClaimUid = blob; 41token.ClaimUid = null;
DefaultAntiforgeryTokenGeneratorTest.cs (2)
428ClaimUid = new BinaryBlob(256) 565ClaimUid = new BinaryBlob(256)
DefaultAntiforgeryTokenSerializerTest.cs (1)
111ClaimUid = _claimUid,
19 references to ClaimUid
Microsoft.AspNetCore.Antiforgery (9)
Internal\DefaultAntiforgeryTokenGenerator.cs (6)
67if (requestToken.ClaimUid == null) 81&& requestToken.ClaimUid == null 150if (requestToken.ClaimUid is null) 194if (token.ClaimUid is null) 199if (token.ClaimUid.Length != claimUidBytes.Length) 204return token.ClaimUid.GetData().SequenceEqual(claimUidBytes);
Internal\DefaultAntiforgeryTokenSerializer.cs (3)
192var claimUidBytes = token.ClaimUid?.GetData(); 202if (token.ClaimUid is not null) 233if (token.ClaimUid != null)
Microsoft.AspNetCore.Antiforgery.Test (10)
AntiforgeryTokenTest.cs (3)
33Assert.Null(token.ClaimUid); 38Assert.Equal(blob, token.ClaimUid); 42Assert.Null(token.ClaimUid);
DefaultAntiforgeryTokenGeneratorTest.cs (5)
72Assert.Null(fieldToken.ClaimUid); 137Assert.Null(fieldToken.ClaimUid); 167Assert.Equal(expectedClaimUid, fieldToken.ClaimUid); 200Assert.Null(fieldToken.ClaimUid); 568var dummyClaimUidExtractor = new DummyClaimUidExtractor(identity, fieldtoken.ClaimUid);
DefaultAntiforgeryTokenSerializerTest.cs (2)
206Assert.Equal(expected.ClaimUid, actual.ClaimUid);