I've created a small service website for a LJ community. I use Perl Net::OpenID::JanRain::Consumer library to authenticate LJ users on it.
I've noticed a problem with the users who have underscore symbol in their LJ usernames. If I do verify regular URI such as
http://foo.livejournal.com
, the resulting identity_uri
is the same, http://foo.livejournal.com
. When I try different combinations with underscores, the stuff gets more complicated:foo_bar.livejournal.com
=> foo-bar.livejournal.com
foo_.livejournal.com
=> users.livejournal.com/foo_/
_foo_.livejournal.com
=> users.livejournal.com/_foo_/
_foo.livejournal.com
=> users.livejournal.com/_foo/
___foo_bar_baz_.livejournal.com
=> users.livejournal.com/___foo_bar_baz_/
foo_bar_baz.livejournal.com
=> foo-bar-baz.livejournal.com/
foo-bar.livejournal.com
=> foo-bar.livejournal.com/
My questions:
- have I checked all possible variants or are there other kinds of LJ usernames that its OpenID server will treat the different way?
- how does LJ handle the situations when both foo-bar and foo_bar users exist? Can this happen or not?
- is there a formal description of the ways LJ handles usernames with underscore symbol(s)?
Apologies if it is not the right community to ask about OpenID problems. Please point me to the right one in that case.