fasrinaleem / OAuth2.0-WebApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OAuth2.0-WebApp

Open the project in a familiar IDE (VSCode)

Execute one of the command in the terminal and Start the web server using the following command from your working directory. The commands differ according to the version of python.

  1. Command for Python 2.x - python -m SimpleHTTPServer 8000
  2. Command for Python 3.x - python -m http.server 8000

Screenshot (30)

Load the URL http://localhost:8000 into your browser. The first time you run the project, it prompts you to authorize access.

Click the Authorize button to open the authorization window.

If you're not already logged in to your Google account, the window prompts you to log in.

If you are logged in to multiple Google accounts, you must select one account to use for the authorization.

Click the Accept button.

Then you will be directed to the eventlist page where your saved events are displayed.

This will display the last 10 events you have saved.

Results

Main Homepage screen to Login to gmail account 1

Showing a warning message since we are accessing it from the localhost (not https protocol) 2 1

Gmail Login Screen for the “OAuthApp” 3

Allow permission for our app to view personal calendar data 4

Grant app permission popup window 5

Display top 10 recent events for the particular gmail account 6 1

Display as no upcoming events message if there are any events for the particular gmail account. 7

Authorize button will change in to Signout when we login to the gmail 8

About


Languages

Language:CSS 96.2%Language:JavaScript 2.7%Language:HTML 1.1%