51 references to FindClaimValue
Microsoft.AspNetCore.Authentication.Test (51)
DynamicSchemeTests.cs (13)
34
Assert.Equal("One", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "One"));
35
Assert.Equal("1", transaction.
FindClaimValue
("Count"));
39
Assert.Equal("One", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "One"));
40
Assert.Equal("1", transaction.
FindClaimValue
("Count"));
46
Assert.Equal("Two", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "Two"));
47
Assert.Equal("2", transaction.
FindClaimValue
("Count"));
51
Assert.Equal("One", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "One"));
52
Assert.Equal("1", transaction.
FindClaimValue
("Count"));
54
Assert.Equal("Two", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "Two"));
55
Assert.Equal("2", transaction.
FindClaimValue
("Count"));
69
Assert.Equal("One", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "One"));
75
Assert.Equal("Two", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "Two"));
82
Assert.Equal("One", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "One"));
GoogleTests.cs (20)
568
Assert.Equal("Test Name", transaction.
FindClaimValue
(ClaimTypes.Name, expectedIssuer));
569
Assert.Equal("Test User ID", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, expectedIssuer));
570
Assert.Equal("Test Given Name", transaction.
FindClaimValue
(ClaimTypes.GivenName, expectedIssuer));
571
Assert.Equal("Test Family Name", transaction.
FindClaimValue
(ClaimTypes.Surname, expectedIssuer));
572
Assert.Equal("Test email", transaction.
FindClaimValue
(ClaimTypes.Email, expectedIssuer));
575
Assert.Equal("yup", transaction.
FindClaimValue
("xform"));
730
Assert.Equal("Test Refresh Token", transaction.
FindClaimValue
("RefreshToken"));
891
Assert.Equal("Test Name", transaction.
FindClaimValue
(ClaimTypes.Name));
892
Assert.Equal("Test User ID", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier));
893
Assert.Equal("Test Given Name", transaction.
FindClaimValue
(ClaimTypes.GivenName));
894
Assert.Equal("Test Family Name", transaction.
FindClaimValue
(ClaimTypes.Surname));
895
Assert.Equal("Test email", transaction.
FindClaimValue
(ClaimTypes.Email));
898
Assert.Equal("yup", transaction.
FindClaimValue
("xform"));
935
Assert.Equal("Test Name", transaction.
FindClaimValue
(ClaimTypes.Name));
936
Assert.Equal("Test User ID", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier));
937
Assert.Equal("Test Given Name", transaction.
FindClaimValue
(ClaimTypes.GivenName));
938
Assert.Equal("Test Family Name", transaction.
FindClaimValue
(ClaimTypes.Surname));
939
Assert.Equal("Test email", transaction.
FindClaimValue
(ClaimTypes.Email));
942
Assert.Equal("yup", transaction.
FindClaimValue
("xform"));
979
Assert.Null(transaction.
FindClaimValue
(ClaimTypes.Name));
MicrosoftAccountTests.cs (1)
252
Assert.Equal("Test Refresh Token", transaction.
FindClaimValue
("RefreshToken"));
PolicyTests.cs (8)
39
Assert.Equal("auth1", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth1"));
42
Assert.Equal("auth1", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth1"));
45
Assert.Equal("auth2", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth2"));
48
Assert.Equal("auth3", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth3"));
51
Assert.Equal("auth2", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth2"));
354
Assert.Equal("auth1", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth1"));
356
Assert.Equal("auth2", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth2"));
358
Assert.Equal("auth3", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, "auth3"));
TwitterTests.cs (9)
438
Assert.Equal("@dotnet", transaction.
FindClaimValue
(ClaimTypes.Name, expectedIssuer));
439
Assert.Equal("123456", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, expectedIssuer));
440
Assert.Equal("123456", transaction.
FindClaimValue
("urn:twitter:userid", expectedIssuer));
441
Assert.Equal("@dotnet", transaction.
FindClaimValue
("urn:twitter:screenname", expectedIssuer));
528
Assert.Equal("@dotnet", transaction.
FindClaimValue
(ClaimTypes.Name, expectedIssuer));
529
Assert.Equal("123456", transaction.
FindClaimValue
(ClaimTypes.NameIdentifier, expectedIssuer));
530
Assert.Equal("123456", transaction.
FindClaimValue
("urn:twitter:userid", expectedIssuer));
531
Assert.Equal("@dotnet", transaction.
FindClaimValue
("urn:twitter:screenname", expectedIssuer));
532
Assert.Equal("Test email", transaction.
FindClaimValue
(ClaimTypes.Email, expectedIssuer));