Foros de discusión

Expando field in custom Authenticator.

Sagar Aher, modificado hace 8 años.

Expando field in custom Authenticator.

New Member Mensajes: 8 Fecha de incorporación: 4/02/16 Mensajes recientes
Hi Guys,

I was trying custom Authenticator.
Now i am facing problem with Expando.

I have created expando filed in Login page.
While authentication call to webservice i have to pass expando field.

Now the question is how to access expando field in authenticateByScreenName or authenticateByEmailAddress methods of Authenticator interface.

Any help is appreciated.
Thanks,
Sagar
thumbnail
Manish Yadav, modificado hace 8 años.

RE: Expando field in custom Authenticator.

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
Try with below code

String yourValue=(String) user.getExpandoBridge().getAttribute(	"<expandofieldname>");</expandofieldname>
Sagar Aher, modificado hace 8 años.

RE: Expando field in custom Authenticator.

New Member Mensajes: 8 Fecha de incorporación: 4/02/16 Mensajes recientes
Manish Yadav:
Try with below code

String yourValue=(String) user.getExpandoBridge().getAttribute(	"<expandofieldname>");</expandofieldname>



Thanks you Manish.
But user is not logged in yet. so there wont be user object to call this method.
For new user value will not be in DB, so this will fail.