Yeah Joseph, something like that!

Thanks!

But, I'd like something more web2pythonic :D I think that we don't this
implemented yet...

Like

auth = Auth(GAE(), db)

I don't know... but here is an idea... :)

Regards,

Tito

On Fri, Mar 20, 2009 at 6:58 AM, Joseph Jude <[email protected]> wrote:

>
> I'm assuming that you want to validate the user via google auth and
> then allow the authenticated user into your application. Sometime
> back, i did this for a desktop based application updating a
> application hosted in appengine (after authentication). I wrote abt it
> here:
> http://www.jjude.com/2008/09/18/authenticating-in-gae/
>
> At first I obtained the uid/pwd from the user and sent it via header
> to authenticate. By one of the comments from the user, I realized that
> it is not a safe manner. Later I let the google auth to validate the
> user and then allow the access accordingly. The code is also shared in
> google code. You can pick it up.
>
> Hope this helps.
>
> Joseph
>
> On Mar 20, 7:09 am, NguyendHEX <[email protected]> wrote:
> > You can use user class from google
> >
> > from google.appengine.api import users
> > user = users.get_current_user()
> > if user:
> > #user.email()
> > else:
> > #redirect to login: users.create_login_url()
> >
> > Hope this help
> >
> > On Mar 20, 6:56 am, Tito Garrido <[email protected]> wrote:
> >
> > > Is there a way to use Google Authentication + web2py on GAE?
> >
> > > Regards,
> >
> > > Tito
> >
> > > --
> > > Linux User #387870
> > > .........____
> > > .... _/_õ|__|
> > > ..º[ .-.___.-._| . . . .
> > > .__( o)__( o).:_______
> >
>


-- 
Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to