Hi Tiago,
A very simple means is to create your own persistent 'user' object.
GAE will let you save users, retrieve users, and you can validate
users. Now, here it is important to assess the security and
confidentiality
requirements of your web application: you may not want usernames and
passwords to travel in cleartext, which would impose an encryption.
However, for a prototype, or if the security requirements are low, you
would not worry about that.
In this case a persistent 'MyUser' object will do the job.
Authenticating against a remote system would be possible if it can be
bridged over a http connection. Suppose you would like your
webapplication
to offer the user's credentials to an LDAP server, outside of GAE.
However, I do not have any experience with that. GAE does not want us
to use
UrlClassLoaders (use url categories of the style "ldap:// ").
Here is a means of registering which links the user clicks on (if
those are external links):
normal link:
<a href="www.tiaterra.org"> visit tiaterra's web site </a>
javascripted:
<a href="#" onClick="javascript:registerAndGo('www.tiaterra.org');">
visit tiaterra's web site <a/>
Here is a proposal for registerAndGo:
registerAndGo(String url) {
$POST("request: " + url); // post back to your server, please see
jQuery for this !
document.location = url;
}
For the 'POST' function: this is a really easy to use function in
jQuery that posts a request to a page back on your web application,
which would create a registration entry (registration would then be
another persistent class in your web application).
I hope this helps you on the way. Good luck!
Jos
On Thu, Sep 10, 2009 at 1:27 PM, TiagoP<[email protected]> wrote:
>
> Thanks for the reply.
>
> I'm very new to google app engine.
>
> Answering your question, what I want is a simple login/register system
> where
> the user inserts e-mail and password to register and logins. The
> question is:
> Is as easy as just save the e-mail/password and then query the login
> to see
> if it match?
>
> About the affiliate system, do you know any way of doing that? I mean,
> how do
> I control the referrals a user obtains to my website?
>
> Last but not least, there's a simple way to know which links a logged
> user clicks on?
>
> Thanks.
>
> Tiago
>
>
> On Sep 10, 10:26 am, Jos Snellings <[email protected]>
> wrote:
>> What do you mean by "own login system"?
>> Do you have an authentication system outside of the Google cloud?
>> You are by no means obliged to use Google's "User" mechanism.
>> Could you be a little bit more specific about the user authentication
>> mechanism that you have in mind?
>>
>> Kind regards,
>> Jos Snellings
>>
>> On Thu, Sep 10, 2009 at 10:26 AM, TiagoP<[email protected]> wrote:
>>
>> > Nobody can help us?
>>
>> > BR
>>
>> > On Sep 9, 9:55 pm, Filipe AlvesFerreira
>> > <[email protected]> wrote:
>> >> Hi I'm interest in the same subject.Thank you.
>> >> Regards/FilipeAlvesFerreira#4(1942)
>>
>> >> 2009/9/9 TiagoP <[email protected]>
>>
>> >> > Hi,
>>
>> >> > I would like to create a very simple app with: my own login system,
>> >> > affiliate system and I want to be able to control the number of links
>> >> > each user opens on my website.
>>
>> >> > Is it possible to do that with GAE and for doing that, which one is
>> >> > better? GAE/J or Python?
>>
>> >> > Thank you for your help.
>>
>> >> > Best regards
>>
>> >> --
>> >> FilipeAlvesFerreira#4(1942)
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---