Today
am going to explain how to authenticate a person to enter our own web site
using his Gmail credentials.
Purpose
Generally
when a person registers himself in a website, a return mail is sent to him either
confirming his registration or sending a password. If the user provides any
invalid mail id also the application tries to send a mail. Even CAPTCHA
(Completely Automated Public Turing test to tell Computers and Humans Apart) code is also
of no use when the user provides an invalid mail address. As majority of
applications use SMTP (Simple Mail Transfer Protocol) no error message is
displayed when Gmail returns a mailer demon message. This increases the
processing time of the application and also wastes memory. Even sometimes we
don’t want the user’s entire details to store in our database. In such
conditions we’ll use Gmail authentication.
The
Gmail authentication helps us to confirm that the registering person is a valid
user. When we ask the user to register him using his Gmail credentials he need
not worry about his password identification. When a person is registered using
his Gmail credentials, the Gmail provides only the first and last name, date of
birth, country, email id of the registered person. It won’t display the
password, phone number, contacts of the registered person etc. even to the
developer. So this is completely secured code .