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.
$ npm install oauth2orize-fprm
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
})
);
Copyright (c) 2015-2018 Jared Hanson <http://jaredhanson.net/>