[jboss-jira] [JBoss JIRA] (ELY-838) Ability to obtain SecurityIdentity without requiring LoginPermission
David Lloyd (JIRA)
issues at jboss.org
Thu Dec 15 12:45:00 EST 2016
[ https://issues.jboss.org/browse/ELY-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13339286#comment-13339286 ]
David Lloyd commented on ELY-838:
---------------------------------
You should be able to do this via:
{code}
newIdentity = domain.getAnonymousIdentity().createRunAsIdentity(name, false);
{code}
The "false" flag disables the auth check. You do need a secmgr permission to do this though (obviously).
> Ability to obtain SecurityIdentity without requiring LoginPermission
> --------------------------------------------------------------------
>
> Key: ELY-838
> URL: https://issues.jboss.org/browse/ELY-838
> Project: WildFly Elytron
> Issue Type: Enhancement
> Components: API / SPI
> Reporter: Darran Lofthouse
> Priority: Critical
> Fix For: 1.1.0.Beta18
>
>
> Integrations such as the batch subsystem within WildFly have the requirement to re-create a previous SecurityIdentity by name using their referenced SecurityDomain, however as this identity may have been inflowed the LoginPermission can not be assumed.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list