The site I am developing supports sign-in with the default SimpleOpenIDSelector providers (the same providers that are listed on stackoverflow login page). While it works for simple sign-ins, my AX-required requests remain unfulfilled. For example, Blogger does not disclose first/last/friendly name through AX.
How can I ensure that I get a string that is the user's preferred name? What are the possible workarounds or alternatives or standard methods of dealing with this?
I am using the latest python-openid library.
preguntado el 28 de agosto de 11 a las 03:08
You can not. Since SREG and AX are extensions to OpenID, you can't expect everyone to use it, and therefore you can't be sure that you will get any data back from a provider.
The standard method of handling this is to have a normal registration form with the missing fields. Simply use the SREG/AX data from the provider as a convenience for the user (as if he entered the data manually in your registration form), not as something you should rely on.