[jboss-dev-forums] [JBoss AS 7 Development] - Re: ClientLoginModule support
jaikiran pai
do-not-reply at jboss.com
Thu Oct 11 09:26:51 EDT 2012
jaikiran pai [https://community.jboss.org/people/jaikiran] created the discussion
"Re: ClientLoginModule support"
To view the discussion, visit: https://community.jboss.org/message/764373#764373
--------------------------------------------------------------
Tarek, you have raised 2 questions/issues here:
1) How to use ClientLoginModule on the remote client side to propagate a client side JAAS login information to the server during connection authentication
2) Once a remote connection has been established with the server using a specific credential, how to switch the credential on that remote connection, for subsequent usages of that connection.
#2 is currently not possible and that's what Darran meant when he said work is in progress to try and support it.
However, if you are looking for an example on how to do #1 then I just added an example to the quickstart guides here https://github.com/jaikiran/quickstart/tree/client-login-module/ejb-remote https://github.com/jaikiran/quickstart/tree/client-login-module/ejb-remote. You can run that quickstart to see it working. But you can even read the javadoc on this class and the referenced classes to understand how it all works https://github.com/jaikiran/quickstart/blob/client-login-module/ejb-remote/client/src/main/java/org/jboss/as/quickstarts/ejb/remote/client/callbackhandler/CustomServerLoginHandshakeCallbackHandler.java#L40 https://github.com/jaikiran/quickstart/blob/client-login-module/ejb-remote/client/src/main/java/org/jboss/as/quickstarts/ejb/remote/client/callbackhandler/CustomServerLoginHandshakeCallbackHandler.java#L40.
I won't be able to write up an article on this today but plan to do soon. But I guess, those javadoc should give you can idea of how it can be achieved. If you have further questions, feel free to ask.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/764373#764373]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121011/8e297498/attachment.html
More information about the jboss-dev-forums
mailing list