You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this line,
if (idToken.Username != username)
it uses the wrong time of string comparison. It does a case-sensitive comparison. However, when you define an alias for a user on the Duo application page, it automatically causes the string to be in lower case. Thus, we should use case-insensitive comparison here. I would replace this line with
if (!string.Equals(idToken.Username, username, StringComparison.InvariantCultureIgnoreCase))
so that different casing doesn't cause an issue since Duo doesn't care about the exact casing for usernames.
The text was updated successfully, but these errors were encountered:
duo_universal_csharp/DuoUniversal/Client.cs
Line 152 in 4a5042a
In this line,
if (idToken.Username != username)
it uses the wrong time of string comparison. It does a case-sensitive comparison. However, when you define an alias for a user on the Duo application page, it automatically causes the string to be in lower case. Thus, we should use case-insensitive comparison here. I would replace this line with
if (!string.Equals(idToken.Username, username, StringComparison.InvariantCultureIgnoreCase))
so that different casing doesn't cause an issue since Duo doesn't care about the exact casing for usernames.
The text was updated successfully, but these errors were encountered: