piyushjavadev / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

Perfect lib (hard to find on Google), and while talking about Google, GAE? #314

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to use the lib for GAE
2. find that the manager is persisted in session
3. cannot find a documentation on which classes to override to have another way 
to persist the manager, to use a raw version without spring an seam, etc...

What is the expected output? What do you see instead?
a raw Jsp file that interacts with java interfaces 
  1 .to get the providers we want to display, 
  2. to ask the server to persist the manager (which is not necessary since the request to the provider can synchronously wait for the answer no?)
  3. react on response received (granted, rejected)

Please provide any additional information below.
Don't get me wrong, your lib is really great!!! I have a touchy need like all 
GAE platform users: we don't control our environment, no way to write a 
personal security strategy: I was about to use this library as an OpenId 
provider itself (you see how much we have to cheet with GAE :-) )

Best regards

Original issue reported on code.google.com by 1vue...@gmail.com on 26 Nov 2013 at 8:18

GoogleCodeExporter commented 9 years ago
What issue you are facing?

Original comment by tarun.na...@3pillarglobal.com on 2 Dec 2013 at 4:50

GoogleCodeExporter commented 9 years ago
Since we're on the cloud, we don't use the session in GAE (because nothing 
garantees the next call to the server will happen on the same server instance). 
So to have the session mechanism, we need to activate the feature, that is 
resource consuming, since it copies session objects between servers often to 
synchronize.

Actually we persist objects to the database, and an optimized algorythm does 
the copy between the server nodes. So I want to persist the manager instance to 
the database instead of putting it in session.

Also the servers on the cloud start and stop depending on the traffic. If a 
server starts to get a lot of traffic, the next request triggers the startup of 
another server. This startup must be very fast so users don't wait eternally 
for their response. For that reason, we don't use Spring or Guice on our 
platform: we use standard factories (even if Guice would maybe have been as 
fast). But this point must be harder to solve since it's an architecture issue. 

To be honest, I didn't investigate much in the lib. I didn't know where to 
start because there's no architecture description document (even just a list of 
the extension points and the interfaces that can be replaced), so I just 
dropped that comment in case someone already did a GAE integration and took the 
time for it. (My deadline is too near to experiment on this today :-( )

Original comment by zhamdi.into on 2 Dec 2013 at 9:38

GoogleCodeExporter commented 9 years ago
Please have a look following link, it will help to use socialauth without 
session.

https://github.com/3pillarlabs/socialauth/issues/3

Original comment by tarun.na...@3pillarglobal.com on 13 Dec 2013 at 11:37

GoogleCodeExporter commented 9 years ago
Thanks !!!

Well documented solution

Original comment by 1vue...@gmail.com on 14 Dec 2013 at 6:59

GoogleCodeExporter commented 9 years ago

Original comment by tarun.na...@3pillarglobal.com on 24 Dec 2013 at 1:10