anybody could help please?
I did successifully run the "JAAS how to" examples, I also changed the login-config.xml to authenticate and authorizate users against my application datasource.
The JAAS how to examples used the ClientLoginModule on the client side to send the username and password from the client to the server, you are trying to pass the username and password into the InitalContext constructor.
Have a look at: -
Section 18.104.22.168 for the LoginInitialContextFactory that allows you to specify the username and password the way you are.
it works!! thank you so much!
i did read the section you suggested and it works... actually i had to change my ejb-jar.xml ... but something small... and set in my auth.conf ClientLoginModule as required.
Now i need to do the same job (authentication and authorization) over HTTPS or http, would be great to do the login call over https and then use http for subsequent calls.
Could you please help me?
thank you in advance for your time.