Alexandre Bougakov (bougakov) wrote in lj_dev,
Alexandre Bougakov

Uderscore-dash ambiguity and OpenID


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, the resulting identity_uri is the same, When I try different combinations with underscores, the stuff gets more complicated:

a) => (notice that underscore gets replaced with dash)

b) => (domain changes to

c) => (same behaviour)

d) => (same behaviour)

e) => (same behaviour)

f) => (all underscores get replaced with dash)

g) => (remains unchanged)

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.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded