留言板

Expando field in custom Authenticator.

Sagar Aher,修改在8 年前。

Expando field in custom Authenticator.

New Member 帖子: 8 加入日期: 16-2-4 最近的帖子
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,修改在8 年前。

RE: Expando field in custom Authenticator.

Expert 帖子: 493 加入日期: 12-5-26 最近的帖子
Try with below code

String yourValue=(String) user.getExpandoBridge().getAttribute(	"<expandofieldname>");</expandofieldname>
Sagar Aher,修改在8 年前。

RE: Expando field in custom Authenticator.

New Member 帖子: 8 加入日期: 16-2-4 最近的帖子
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.