0.2.2 • Published 5 years ago

@zhaow-de/oauth2orize-fprm v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

npm npm (scoped) Build Status Coverage Status Codacy Badge Depfu

@zhaow-de/oauth2orize-fprm

OAuth2orize response mode plugin providing support for Form Post Response Mode.

This response mode uses the HTTP POST method instead of a redirect URI to return authorization responses from the authorization server.

Install

$ npm install --save @zhaow-de/oauth2orize-fprm

Usage

Add Response Mode

For each grant in which form post response mode is desired, add support by passing a modes option containing form post response mode. For example, using the token grant:

server.grant({ 
  modes: {
    form_post: require('@zhaow-de/oauth2orize-fprm')
  } }, 
  oauth2orize.grant.token(function(client, user, ares, done) {
    // TODO: issue token
  })
);

License

The MIT License

Copyright (c) 2015-2018 Jared Hanson [http://jaredhanson.net/](http://jaredhanson.net/)

0.2.2

5 years ago

0.2.1

5 years ago