Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » After executing LDAPExSecurityFilter, how to get at the Scout Client side user and passw.(LDAPExSecurityFilter)
icon5.gif  After executing LDAPExSecurityFilter, how to get at the Scout Client side user and passw. [message #1022318] Thu, 21 March 2013 13:09 Go to next message
Ferran Siles Vila is currently offline Ferran Siles Vila
Messages: 11
Registered: March 2013
Junior Member

Hello,

I have a question regarding to the LDAPExSecurityFilter, which it has been implemented by Urs Beeli, enhancing the functionality of the previous LDAPSecurityFilter, the process of which it is described here.
The thing is that, once that I am logged in without any problem, I would like to be able to retrieve the user and password in the client side of my Scout application, after have past this filter (LDAPExSecurityFilter).

Thank you for your time.

Ferran
Re: After executing LDAPExSecurityFilter, how to get at the Scout Client side user and passw. [message #1022730 is a reply to message #1022318] Fri, 22 March 2013 08:43 Go to previous message
Andreas Hoegger is currently offline Andreas Hoegger
Messages: 169
Registered: February 2010
Senior Member
You should be able to access the username on ClientSession/ServerSession:

ClientSession.get().getUserId()


The username is kept on Server- and ClientSession as a shared variable. See also:
org.eclipse.scout.rt.server.AbstractServerSession.assignUserId()

If not let me know.

For security reason the password is never shipped to the client. If needed you could manage it the same way as the userId. Take note of security concepts!

/andreas
Previous Topic:Having a "frozen" column in a table
Next Topic:switch communication from http to https
Goto Forum:
  


Current Time: Sat Apr 19 11:48:05 EDT 2014

Powered by FUDForum. Page generated in 0.08459 seconds