Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Problem with ClaimsResponse, if users's language + country doesn't make a valid culture #260

Closed
AkosLukacs opened this issue Mar 15, 2013 · 1 comment

Comments

@AkosLukacs
Copy link
Contributor

Tried to authenticate with google, and got this exception:
Culture is not supported. Parameter name: name en-HU is an invalid culture identifier.
Stacktrace:
System.Globalization.CultureNotFoundException: Culture is not supported. Parameter name: name en-HU is an invalid culture identifier. at System.Globalization.CultureInfo.GetCultureInfo(String name) at DotNetOpenAuth.OpenId.Extensions.SimpleRegistration.ClaimsResponse.get_Culture()

The exceptions (and the as well source ) tell that you are trying to concatenate language + country.

I think it's possible that someone is living in a foreign country changes the country to the place where (s)he actually lives, but leaves the original language. That could create all kinds of illegal language-country combinations.

@AArnott
Copy link
Member

AArnott commented Mar 17, 2013

Thanks for the pull request. Closing this issue as it is duplicate now.

@AArnott AArnott closed this as completed Mar 17, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants