Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zslucky/koa-oauth2-password-server

A koa based SSO server with oauth2
https://github.com/zslucky/koa-oauth2-password-server

koa oauth2

Last synced: about 7 hours ago
JSON representation

A koa based SSO server with oauth2

Awesome Lists containing this project

README

        

# koa-oauth2-password-server
[![Build Status](https://travis-ci.org/zslucky/koa-oauth2-password-server.svg?branch=master)](https://travis-ci.org/zslucky/koa-oauth2-password-server)

A 'password' grant type based oauth2 authentication server.

### Usage
1. `npm install`.
2. `npm start`. (or `npm run pm2-start`).

### Test
```bash
curl -XPOST -d 'username=admin&password=admin&grant_type=password&client_id=trackr&client_secret=admin' http://localhost:3000/oauth2/token
```

### TODO List
1. handle redis and mongodb connect before server start.