I’m planning to add openid support for a web application I’m building. I can’t seem to find the maximum length of a valid openid so I can store it in my database. I’ve seen some vague references to 255 but I’d rather be sure.
In addition is it useful to use the openid as the username (recommendations)?
an OpenID is a URI, so you are limited by the maximum length of a URI. As far as I know there is no limit, but some browsers (such as Internet Explorer) have a limit.
Further reading:
http://openid.net/pipermail/general/2008-August/005305.html