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