Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004185 [Resin] minor always 08-23-10 09:54 01-20-11 16:52
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution no change required Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.15 Product Version 4.0.9
  Product Build
Summary 0004185: Integration with SpringSecurity
Description com.caucho.server.http.HttpServletRequestImpl.getUserPrincipal()

Is there some programmatic hook I can use to notify Resin of the successful user authentication event? We're using spring authentication with our own AuthenticationProvider. This functionality used to work, but we've re-worked some of the authentication code and upgraded from Resin3 -> Resin4 since then. I'm having trouble tracking down where the breakage is.


Checking the source, it looks as though the getUserPrincipal() only checks the request attributes for 'caucho.login', not the session attributes.
Is this expected behaviour, and if so how can I get the session attribute into the request attribute in order for it to be returned from getUserPrincipal().
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0004983)
ferg
01-20-11 16:52

server/1ag3

The Principal can be stored in the session as "caucho.user.principal" (com.caucho.security.Login.LOGIN_USER_PRINCIPAL)

session.setAttribute(Login.LOGIN_USER_PRINCIPAL, new BasicPrincipal("my-user"));

The actual code handling the session is in AbstractLogin because the Authenticator is now independent of the servlet spec and HTTP and servlet-specific handling is in the Login.
 

- Issue History
Date Modified Username Field Change
08-23-10 09:54 alex New Issue
01-20-11 16:52 ferg Note Added: 0004983
01-20-11 16:52 ferg Assigned To  => ferg
01-20-11 16:52 ferg Status new => closed
01-20-11 16:52 ferg Resolution open => no change required
01-20-11 16:52 ferg Fixed in Version  => 4.0.15


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker