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.
- Command for Python 2.x - python -m SimpleHTTPServer 8000
- Command for Python 3.x - python -m http.server 8000
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
Showing a warning message since we are accessing it from the localhost (not https protocol)
Gmail Login Screen for the “OAuthApp”
Allow permission for our app to view personal calendar data
Grant app permission popup window
Display top 10 recent events for the particular gmail account
Display as no upcoming events message if there are any events for the particular gmail account.
Authorize button will change in to Signout when we login to the gmail