jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Login error with null Credentials
Date Mon, 03 Apr 2006 09:28:17 GMT
I hace a webapp configured with security. So I need to login on it,
using BASIC authentication. When I do:

Repository r = (Repository) ctx.lookup("repo");
Session session = r.login();

Jackrabbit is supposed to get credentials from the authenticated user,
but fails.

In my protected JSP i do:

AccessControlContext acc = AccessController.getContext();
Subject subject = Subject.getSubject(acc);

but the subject is null. It seems to be a JBoss problem with this
workaround (I use JBOss 4.0.2):

Context ctx = new InitialContext();
org.jboss.security.SubjectSecurityManager mgr =
(org.jboss.security.SubjectSecurityManager)ctx.lookup("java:comp/env/security/securityMgr");
Subject sub = mgr.getActiveSubject();

So, Can anybody confirm that r.login() fails?

Thanks in advance.
-- 
Paco Avila <pavila@git.es>


Mime
View raw message