Skip to content
Prev Previous commit
Next Next commit
Switches string check to use StartsWith instead of Contains
  • Loading branch information
Joel Sparks committed Feb 18, 2020
commit 5a9c28e1e537e065b76f01ca03a0948fbd6ee2b5
2 changes: 1 addition & 1 deletion src/AspNet.Security.OpenId/OpenIdAuthenticationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ protected override async Task HandleChallengeAsync(AuthenticationProperties prop

foreach (var attribute in Options.Attributes)
{
if (attribute.Key.Contains("openid.ns"))
if (attribute.Key.StartsWith("openid.ns"))
{
message.Parameters.Add(attribute.Key, attribute.Value);
}
Expand Down