I already had the Authentication plugin in my broker.xml

<security-settings>
   <security-setting match="#">
        <permission type="createNonDurableQueue" roles="amq"/>
        <permission type="deleteNonDurableQueue" roles="amq"/>
        <permission type="createDurableQueue" roles="amq"/>
        <permission type="deleteDurableQueue" roles="amq"/>
        <permission type="consume" roles="amq"/>
        <permission type="send" roles="amq"/>
        
        <permission type="manage" roles="amq"/>
   </security-setting>
</security-settings>

I thought JAAS would need a different authentication setup.

All I had to do was to assign role during login. 
principals.add(new RolePrincipal("amq"));

Thanks again Justin. 




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/User-privileges-exception-thrown-from-jaas-Authorization-plugin-format-for-jaas-artemis-tp4719410p4719479.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to