activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan White <dwh...@olp.net>
Subject Authentication with the Ajax Connector
Date Wed, 30 Jul 2008 03:39:04 GMT
I'd like to experiment with adding authentication functionality 
to the Ajax connector, and would like some advice. An idea I have 
is to try the following:

Add a connect/login method to the javascript code
Authenticate the user with a ConnectionInfo instance in the Ajax 
servlet (as seen in the stomp connector)
Stash the username in the JSESSION HTTP session on successful 
authentication
Reference the stashed username on each subsequent subscribe and 
send operation

Is this approach feasible, an if so, how would one access the 
HTTP session information from within the REST/AJAX code?

Thanks,
- Dan

Mime
View raw message