Método confiable para obtener el nombre de usuario o el nombre real de OpenID

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

1 Respuestas

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.

Respondido 29 ago 11, 10:08

Cool, that's pretty much what I figured out, too. Cheers! - Evgeny

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.