Socket
Book a DemoInstallSign in
Socket

oauth2-server-pg

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth2-server-pg

PostgreSQL and Express powered OAuth 2.0 server

latest
Source
npmnpm
Version
1.6.1
Version published
Maintainers
1
Created
Source

oauth2-server-pg

Build Status Coverage Status NPM version

A PostgreSQL OAuth 2.0 Server.

Usage

starting server:

./bin/oauth2-server-pg.js start --help

generating a client:

POST /client

generating a token:

POST /client/:client_id/token

Development and Testing

For convenience, this project can leverage Docker to run Postgres for you. If you have Docker installed (and the daemon running), then a Postgres db will automatically be created and destroyed when running tests via npm test. If you don't have Docker installed, you will need to run Postgres manually before testing.

When developing and testing locally (outside of just running npm t) with Docker installed, you can use the following npm run scripts for convenience:

  • npm run pg-test: Initialize a Postgres db within a Docker container and leave it running
  • npm run psql: Login to the running Postgres container to run some manual queries
  • npm run pg-test-down: Destroy the running Postgres container

License

ISC

Keywords

oauth

FAQs

Package last updated on 08 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts