views:

106

answers:

2

Let's say I had a root app and multiple sub-apps. Would it be possible to share authenticated sessions across them?

I'm using Google App Engine (Python).

+1  A: 

Not using the built in authentication support - users have to authenticate separately with each application.

Nick Johnson
So any ideas on how I could implement this? How easy is manual authentication in Python?Maybe I could use something like OpenID on my root application and the sub apps could make a request to this app to find out if the user is authenticated.
Matt H
@Matt H Check this answer: http://stackoverflow.com/questions/3277884/openid-authentication-on-appengine-and-non-appengine-subdomains/3280333#3280333
Vitor Py
You'd need to set cross-subdomain cookies for sessions (easy), or use a single sign-on mechanism (a bit more complex).
moraes
+4  A: 

If you use tipfy, the wonderful lightweight almost-not-a-framework that @moraes developed specifically for App Engine use, you get many excellent choices for authentication approaches (see here) several of which will let you achieve what you're after.

Alex Martelli
Checkout a demo website which is work in progresshttp://tipfy-auth.appspot.com/thanks @moraes ;-)
PedroMorgan
Would I have to use the whole framework? I need a solution that can integrate with my current code.
Matt H
@Matt, tipfy's "whole framework" is _tiny_, as well as totally modular and WSGI-centric -- I can't think of anything that might be easier to integrate with _whatever_ framework you're currently using (you chose not to even **mention** that framework in your Q and tags, btw, so, how did you expect anybody in the world to mystically guess that you attached any importance whatsoever to that framework, whatever it may actually be?!-).
Alex Martelli