users@glassfish.java.net

Re: RE: Glassfish FileRealm

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Aug 2008 08:20:15 PDT

So, I have this working now, but I wish to go a step further and define my own Principal. As soon as I do this access is denied to my protected pages, even after login.

I have "Default Principal To Role Mapping" selected and my own principal in "Mapped Principal Class". My custom implementation implements java.security.Principal with single param constructor and equals method. The class is packaged in jar which had to be placed in <path-to-glassfish-home>/lib

Since I have added "Mapped Principal Class" login is successful but access is denied to protected pages.

Any ideas would be appreciated.
[Message sent by forum member 'drfranknfurter' (drfranknfurter)]

http://forums.java.net/jive/thread.jspa?messageID=295953