Demo
Click below to log in with your Google account:
Introduction
Google Sign-In, is an easy code snippet written in classic ASP (VBScript) you can integrate into your website to allow users to login using their Google account.
This one-click procedure eliminates the need for passwords and manual registration to your website, saves time and is more secure for your visitors.
Our source code is readable, tidy and small. You only need to include 2 files into your existing website.
Features
Once a user has granted your application the permission to interact with his/her Google account, you can do the following with this code:
• Get the connected user Google token (via OAuth 2.0)
• Read basic user info (Google ID, name, profile URL and email address)
• Save the user into local database
Documentation
1) create Google API project (or use existing one)
2) Edit lib/google.asp
and replace the values under "your configuration" with yours
3) Upload script to your FTP
4) If you want to save user info to local database, import database.sql
to your MySQL server
We made it simple and clear so that you can understand how you can use the Google API in your app or website and extend the functionalities to comply with the special needs of your application. There are more useful information commented inside the script.
Requirements
• ASP 3.0 (VBScript)
• Microsoft IIS 6+
• MySQL ODBC 5+ (optional)
Changelog
Version 1.1 (2020/aug/22)
• automatically create user account in your database
• code rewritten and optimized
Version 1.0 (2018/mar/6)
• initial release