GithubHelp home page GithubHelp logo

isuruhettiarachchi / ssd-oauth-assignment Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 5.0 175 KB

Google OAuth Application

JavaScript 44.61% CSS 1.24% HTML 54.15%
oauth2-server google-oauth2 google-apis

ssd-oauth-assignment's Introduction

ssd-oauth-assignment

This Node.js Express server application demonstrate basic Google OAuth2 process to access user's private calendar information. A blog post explaining the basic OAuth2 process can be found here.

Setup

Clone the repo and install dependencies

git clone https://github.com/robotikka/ssd-oauth-assignment.git
cd ssd-oauth-assignment 
npm install

Create an Google Console API application from here and enable Google Calendar API.

Create an .env file in the root directory as follows

GOOGLE_CLIENT_ID = [Application Client ID]
GOOGLE_CLIENT_SECRET = [Application Client Secret]

SESSION_NAME = "GoogleOAuthSession"
SESSION_SECRET = "secretsecret"

To start express server, run the following

npm test

Visit http://localhost:3000/ on your browser to access the application.

This application is developed for the 2nd Assignment of Secure Software Development module offered in 4th year 2nd semester of BSc. in Information Technology specialized in Software Engineering degree at Sri Lanka Institute of Information Technology.

ssd-oauth-assignment's People

Contributors

isuruhettiarachchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.