Need private packages and team management tools?Check out npm Teams »

flows-gateway

0.0.32 • Public • Published

Introduction

Getting Started

To run in development mode:

 npm run start

Flow

curl -v http://localhost:8000/api/hi

: Returns 401 Unauthorized

curl -X POST -v http://localhost:8000/oauth/token -d "client_id=thom&client_secret=nightworld&grant_type=password&username=thomseddon&password=nightworld"

: Succesfully used the user/password.  Returns access_token


curl -H "Authorization: Bearer 016ad346366ff652b01f033d65ab3efcc2ab73f2" -v http://localhost:8000/api/hi

: Successfully makes API call



curl -X POST -v http://localhost:8000/oauth/token -d "client_id=thom&client_secret=nightworld&grant_type=authorization_code&code=n2cyt78bvyf2c8hd72"

: Succesfully used the authorization code. Returns access_token


http://localhost:8000/oauth/authorize?client_id=thom&client_secret=nightworld&redirect_uri=http://localhost:8000/_oauth/do&response_type=code




curl -X POST -v http://localhost:8000/oauth/token -d "client_id=thom&client_secret=nightworld&grant_type=authorization_code&code=f6da7b6976bbf270eeb9319b566305783ba453fa"

Install

npm i flows-gateway

DownloadsWeekly Downloads

0

Version

0.0.32

License

MIT

Last publish

Collaborators

  • avatar