Skip to content

Latest commit

 

History

History
755 lines (24 loc) · 1.9 KB

README.md

File metadata and controls

755 lines (24 loc) · 1.9 KB

OAuth 2.0 + NodejS + JavaScript +Google Drive API

This project is a demonstration of using Google Drive API to access files using NodeJS and JavaScript based on OAuth 2.0. OAuth 2.0 is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service. OAuth 2.0 provides authorization flows for web and desktop applications, and mobile devices.


Setup

Requirements

A recent version of NodeJS and npm.

Running the App

Clone this repository Use master branch!

Steps:

  • Run npm install.
  • Navigate to google-oauth-2.0 directory and run node index.js.
  • The app runs on port 3002.
  • Open a web browser and navigate to http://localhost:3002/

Description

You can Sign In to the application using a Google account. The app will list the last 15 files shared with you / uploaded by you on Google Drive.

Note:

  • You have to allow access to this app when Signing In with Google.

Blog: