Foren

Expando field in custom Authenticator.

Sagar Aher, geändert vor 8 Jahren.

Expando field in custom Authenticator.

New Member Beiträge: 8 Beitrittsdatum: 04.02.16 Neueste Beiträge
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, geändert vor 8 Jahren.

RE: Expando field in custom Authenticator.

Expert Beiträge: 493 Beitrittsdatum: 26.05.12 Neueste Beiträge
Try with below code

String yourValue=(String) user.getExpandoBridge().getAttribute(	"<expandofieldname>");</expandofieldname>
Sagar Aher, geändert vor 8 Jahren.

RE: Expando field in custom Authenticator.

New Member Beiträge: 8 Beitrittsdatum: 04.02.16 Neueste Beiträge
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.