User class

7 views
Skip to first unread message

Abhirath Batra

unread,
May 17, 2008, 6:39:07 AM5/17/08
to Google App Engine
I am new on using this framework of google and am trying on making
some minor changes to the guestbook application of the example. I
wanted to add the USER service to the first page and then filter the
results accordin to the the username. For that I also wanted the
application to confirm the password stored in to a datastroe model.
But i dont seem to find a function or varialble in the User service to
access the pasword entered by the user.


Also I want to ask that if i run two terminals together, the
dev_appserver shows both of them hosted on the localhost:8080. So
which application will be displayed in such a case..

Abhi

Devraj Mukherjee

unread,
May 18, 2008, 2:31:37 AM5/18/08
to google-a...@googlegroups.com
Hi Abhi,

If I get your question right, then the answer is that there is no real
idea of a Username and Password that is made available to your
application.

The authentication is handled by the Google AppEngine framework and
then an authentication user is redirected to your page.

You would then choose to validate your user dependent content by
querying a db.UserProperty element. Various examples should how you
can get access to a current user.

Above all you should not have to worry about passwords etc.

Also generally if a server is using a port number the second sever
should fail to start. I am not sure why dev_appserver starts two
processes listening on the same port number.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)

Reply all
Reply to author
Forward
0 new messages