Nonstop Perpetual Motion
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

homepage

gitlab.com

repository

Gitgitlab

last publish

collaborators

  • avatar
Report a vulnerability