0.1.1 • Published 7 years ago

oauth2orize-response-mode v0.1.1

Weekly downloads
15
License
MIT
Repository
github
Last release
7 years ago

oauth2orize-response-mode

Version Build Quality Coverage Dependencies

OAuth2orize extension providing support for requesting a particular response mode.

This response_mode parameter is defined by OAuth 2.0 Multiple Response Type Encoding Practices and allows a client to request a particular mechanism for returning the authorization response, other than the default redirection-based mechanism using query and fragment encoding as specified by OAuth 2.0.

Install

$ npm install oauth2orize-response-mode

Usage

Parse Request Extensions

In order to parse the additional parameter used to request a response mode, register support for this extension with a Server instance:

server.grant(require('oauth2orize-response-mode').extensions());

Add Additional Response Modes

Support for additional response modes can be added by extending the Server instance using separately packaged modules. Form Post response mode is implemented by oauth2orize-fprm. Web Message response mode is implemented by oauth2orize-wmrm.

License

The MIT License

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