[
https://issues.jboss.org/browse/ELY-838?page=com.atlassian.jira.plugin.sy...
]
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)