oauth2orize-fprm

0.2.1 • Public • Published

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.

Status: Version Build Quality Coverage Dependencies

Sponsorship

OAuth2orize is open source software. Ongoing development is made possible by generous contributions from individuals and corporations. To learn more about how you can help keep this project financially sustainable, please visit Jared Hanson's page on Patreon.

Install

$ npm install 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('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/>

Readme

Keywords

Package Sidebar

Install

npm i oauth2orize-fprm

Weekly Downloads

6

Version

0.2.1

License

MIT

Unpacked Size

8.85 kB

Total Files

13

Last publish

Collaborators

  • jaredhanson