GithubHelp home page GithubHelp logo

whatthefar / express-gateway-authentication-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c0d1um/express-gateway-authentication-plugin

0.0 0.0 0.0 13 KB

License: Apache License 2.0

JavaScript 100.00%

express-gateway-authentication-plugin's Introduction

express-gateway-authentication-plugin

Authentication plugin for Express Gateway

Key Features:

  • Supports user authentication with Google oauth2, Basic auth by using JWT token to identify the login user.
  • Stores user data in PostgreSQL.

Requirements:

  • Node.js
  • Express Gateway
  • passport-google-oauth20
  • sequelize
  • node-postgres
  • PostgreSQL

Getting Started:

$ npm install -g express-gateway
$ eg gateway create

eg gateway create
# follow prompts
? What\'s the name of your Express Gateway? my-gateway
? Where would you like to install your Express Gateway? my-gateway
? What type of Express Gateway do you want to create? Getting Started with Express Gateway

# copy this plugin to new directory
$ cp -r /path/to/express-gateway-authentication-plugin ./my-gateway/ 

# cd to new directory
$ cd ./my-gateway

# install dependencies
$ npm install --save sequelize
$ npm install --save pg pg-hstore
$ npm install --save passport-google-oauth20

# install this plugin
$ eg plugin install express-gateway-authentication-plugin 
? Would you like to enable this plugin in system config? Yes
? Would you like to add new policies to gateway config? Yes
Plugin installed!

Usage:

  • TBD

express-gateway-authentication-plugin's People

Contributors

psmithip 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.