[jboss-jira] [JBoss JIRA] (WFLY-4043) Cannot load custom login module

Rostyslav Smirnov (JIRA) issues at jboss.org
Wed Dec 10 20:12:40 EST 2014


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

Rostyslav Smirnov commented on WFLY-4043:
-----------------------------------------

The quickstart example is just a way to reproduce this problem. Consider a simple configuration:

            <security-realm name="ApplicationRealm">
                <authentication>
                    <jaas name="my-domain"/>
                </authentication>
            </security-realm>
...
                <security-domain name="my-domain">
                    <authentication>
                        <login-module code="MyLoginModule" flag="required"/>
                    </authentication>
                </security-domain>

Regardless of whether MyLoginModule.class is deployed inside an EAR or its own Wildfly module, class is not found. It works only when deployed in its own Wildfly module and that module is added as a dependency to "org.wildfly.extension.io" module.

> Cannot load custom login module
> -------------------------------
>
>                 Key: WFLY-4043
>                 URL: https://issues.jboss.org/browse/WFLY-4043
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 8.1.0.Final
>         Environment: Java 1.8.0_25
>            Reporter: Rostyslav Smirnov
>            Assignee: Jason Greene
>
> When security realm authentication is configured to use JAAS domain, it is not possible to use custom login module, because there is no loader present for deployed classes. LoginContext attempts to load the login module class and fails with ClassNotFoundException.



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list