Reputation: 551
I am using a custom module to authenticate users of my SOAP interface using Jboss, based on JAAS. It is just a simple BASIC authentication, using username and password.
I am currently using SOAPUI to test the interface, and setting authorization credentials on the specific request. This is the problem:
So in short making subsequent requests with different users make no difference. BTW, I am using "Close connection after request" on SOAP UI as I thought this may be the source. But the problem continued.
What am I missing in the request cycle here, should the custom module not be run on every request?
Regards, OM
Upvotes: 0
Views: 536
Reputation: 551
I figured this out in the end myself. There was no wrong settings etc on the client side. But when setting up the module in jboss's standalone.xml, the cache-type was set.
If cache-type is removed from the security-domain section, the module will be called on every request.
<security-domain name="example" cache-type="default">
<authentication>
<login-module code="com.example.loginModule" flag="required"/>
</authentication>
</security-domain>
Hope this might help someone else.
Upvotes: 2