[
https://issues.apache.org/jira/browse/JCR-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815935#comment-13815935
]
Felix Meschberger commented on JCR-3293:
----------------------------------------
Codewise, something like this, I think:
{code}
Subject s = getAndPopulateTheSubject();
Session session = Subject.doAs(s, new PrivilegedExceptionAction() {
public Session run() throws RepositoryException {
return repository.login();
}
});
{code}
(plus proper exception handling and unwrapping, of course)
> AbstractLoginModule: get rid of trust_credentials_attribute
> -----------------------------------------------------------
>
> Key: JCR-3293
> URL: https://issues.apache.org/jira/browse/JCR-3293
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Affects Versions: 2.4
> Reporter: angela
>
> based on JCR-2355 we added a very simplistic way to indicate to the login
> module that the given credentials have
> been preauthenticated. as already stated in the original issue this poses a
> major security issue as it leaves the
> repository access untrusted.
> i would like to raise those security concern again and would therefore like
> to get rid of that hack in the long run.
> the suggested procedure:
> - deprecate the attribute (immediately)
> - log a warning if it is used (immediately)
> - document how to fix code that is currently relying on that attribute
> - remove support altogether for the next major release
--
This message was sent by Atlassian JIRA
(v6.1#6144)