I have this code:
object Auth {
def username = S.containerRequest.map( r => r.asInstanceOf
[HTTPRequestServlet].req.getRemoteUser() ).openOr("UNKNOWN_USER")
}
The background is that I have my own Servlet Filter that performs
authentication. It fits in the chain before the Lift Filter. For
Lift, then all I need to do is ask the HTTPRequestServlet's remoteUser
for the user context.
I recently migrated from 1.1-M8 to 2.0-M1. In 1.1-M8, I would get the
remote user. In 2.0-M1, I am getting UNKNOWN_USER.
What changed between 1.1-M8 and 2.0-M1 to break this?
How can this code be changed to work as I expected?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.