jcricket/gwt-syncproxy

Support for pluggable login implementations and Http session management

Closed this issue · 2 comments

I was attempting to use syncproxy to do some load testing, but hit two snags:
1. I needed to use multiple http sessions to similute multiple users. 
2. My application uses Spring security for login. 

To this end, I created the attached patch based off of trunk revision 10 that:
1. Adds a SessionManager interface and DefaultSessionManager implementation 
that can independently handle cookies and login. I added new methods to 
SyncProxy that allow a user to pass in a SessionManager to be used for the 
proxy. If none is passed in then the DefauleSessionManager is used preserving 
old behavior. 

2. I added a LoginProvider interface and made GAELoginProvider and 
SpringLoginProvider implementations. I also added a CredentialsManager 
interface that users can implement to provide credential to the login 
providers. Finally it is also possible for user to plug in there on 
LoginProviders. 

The combination of these two allows me to have multiple users logged in from 
the same jvm to achieve the load testing I was looking for. 

Original issue reported on code.google.com by colin.ma...@gmail.com on 11 Aug 2010 at 9:26

Attachments:

Sorry about that looks like I double clicked submit!

Original comment by colin.ma...@gmail.com on 11 Aug 2010 at 9:29

Fixed in version 0.2

Thanks for your patch.

Original comment by gwtdevel...@gmail.com on 13 Nov 2010 at 7:52

  • Changed state: Fixed