You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Manfred Baedke (Jira)" <ji...@apache.org> on 2019/11/13 15:37:00 UTC
[jira] [Updated] (OAK-8763) LoginContextProviderImpl uses any
subject found in the AccessControlContext.
[ https://issues.apache.org/jira/browse/OAK-8763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manfred Baedke updated OAK-8763:
--------------------------------
Description: LoginContextProviderImpl#getLoginContext(...) extracts the most recent subject from the AccessControlContext and the uses it for either a PreAuthContext or a JaasLoginContext. This is wrong, because there is no reason to assume that such a subject has anything to do with Oak. It particularly hurts when it's readonly, because JAAS will then silently fail to add principals and credentials. (was: LoginContextProviderImpl#getLoginContext(...) extracts the most recent subject from the AccessControlContext and the uses it for either a PreAuthContext or a JaasLoginContext. This is wrong, because there is no reason to assume. that such a subject has anything to do with Oak. It particularly hurts when it's readonly, because JAAS will then silently fail to add principals and credentials.)
> LoginContextProviderImpl uses any subject found in the AccessControlContext.
> ----------------------------------------------------------------------------
>
> Key: OAK-8763
> URL: https://issues.apache.org/jira/browse/OAK-8763
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: security-spi
> Reporter: Manfred Baedke
> Assignee: Angela Schreiber
> Priority: Major
>
> LoginContextProviderImpl#getLoginContext(...) extracts the most recent subject from the AccessControlContext and the uses it for either a PreAuthContext or a JaasLoginContext. This is wrong, because there is no reason to assume that such a subject has anything to do with Oak. It particularly hurts when it's readonly, because JAAS will then silently fail to add principals and credentials.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)