[jboss-jira] [JBoss JIRA] (WFLY-9557) Webservice subsystem requires an undertow dependency to get the Elytron security domain.

Darran Lofthouse (JIRA) issues at jboss.org
Thu Nov 23 09:33:00 EST 2017


    [ https://issues.jboss.org/browse/WFLY-9557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493407#comment-13493407 ] 

Darran Lofthouse commented on WFLY-9557:
----------------------------------------

One thought on this, we do associate the SecurityDomain with the ClassLoader of the deployment, maybe this would be an option to obtain the SecurityDomain that was already associated?


{code:java}
    public static SecurityDomain getCurrent() {
        final SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            sm.checkPermission(GET_SECURITY_DOMAIN);
        }

        final Thread currentThread = Thread.currentThread();
        ClassLoader classLoader;
        if (sm != null) {
            classLoader = doPrivileged((PrivilegedAction<ClassLoader>) currentThread::getContextClassLoader);
        } else {
            classLoader = currentThread.getContextClassLoader();
        }

        return classLoader != null ? CLASS_LOADER_DOMAIN_MAP.get(classLoader) : null;
    }
{code}

Or do you require it sooner?

> Webservice subsystem requires an undertow dependency to get the Elytron security domain.
> ----------------------------------------------------------------------------------------
>
>                 Key: WFLY-9557
>                 URL: https://issues.jboss.org/browse/WFLY-9557
>             Project: WildFly
>          Issue Type: Task
>          Components: Security, Web (Undertow)
>    Affects Versions: 11.0.0.Final
>            Reporter: Jim Ma
>            Assignee: Darran Lofthouse
>
> Webservice subsystem requires an undertow's dependency(ApplicationSecurityDomainService or some Service) to get Elytron security domain to do webservice layer authentication. 
> From Darren,  elytron security resource will be added in deploymentUnit after WF 11.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list