0
votes

1.) I have Tried with WL.Client.isUserAuthenticated(realm) but it was not working.

2.) So i tired with refreshing the relams by WL.Client.updateUserInfo (options) in function function wlCommonInit()and tried with refreshing outside of the wlCommonInit() function.

3.) I tried to retrieve the logged in Users details from Client side by these also:

a ) WL.Client.getUserName(realm)
b ) WL.Client.getLoginName(realm)
c ) WL.Client.isUserAuthenticated(realm)

But not able to get Boolean value as True for WL.Client.isUserAuthenticated(realm) and active details of User logged in for particular realm.

Would be please let me know the proper details or methods to get the Active Users details without using WL.Server.getActiveUser(realm) from server side.

I just wanted how to do in client side.

Regards,

Sheikh Mohammed Shamnoon

=====Comment

I am Able to get the User which i have set by using "WL.Server.setActiveUser(Realm, userIdentity);".I don't have any problem in getting the logged in user which is set in server end,I am retrieving for different adapter by using " WL.Server.getActiveUser("SingleStepAuthRealm");", That way it works by passing isAuthenticated as another object while returning authRequired == false,I want in Client side i am not able to retrieve value for WL.Client.isUserAuthenticated() == "true" even if user is logged in i tried refreshing realms by using "WL.Client.updateUserInfo (options)" even i tried with delay after refreshing "WL.Client.updateUserInfo (options)" then called "WL.Client.isUserAuthenticated()" but still not working for me..

1
What you getting? Error or something else. Can you try this stackoverflow.com/questions/21770854/…. - dhineshsundar
What do you mean "not working"? Please edit your question to elaborate. What errors do you get? - Andrew Ferrier
I wana get the details of logged in Client after authentication for the particular realm. on a client side I am not getting WL.Client.isUserAuthenticated(realm) is as true, Even if the Client for that realm is authenticated ......I mean after logging in if i call WL.Client.isUserAuthenticated(realm) the output will be false instead of true.... - Sheikh Shamnoon
When you are invoking WL.Client.isUserAuthenticated(), in the authentication flow? If it is so then can you give some delay once you receive authsuccess:false. stackoverflow.com/questions/21770854/… - dhineshsundar
See @AndrewFerrier my Comment in Main Question:::: above because of less character's allowed i couldn't explain here ...And thanks for showing interest on solving this problem..:-) please help to find out solution... - Sheikh Shamnoon

1 Answers

2
votes
  1. Call to WL.Client.updateUserInfo();?

  2. WL.Client.isUserAuthenticated(realm)

Similar issue addressed here.

unkonwn realm[myRealm]