oauth2orize-fprm
v0.2.1
Published
Form Post response mode support for OAuth2orize.
Downloads
6
Readme
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.
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
Copyright (c) 2015-2018 Jared Hanson <http://jaredhanson.net/>