0.1.3 • Published 5 years ago

@zhaow-de/oauth2orize-response-mode v0.1.3

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

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

@zhaow-de/oauth2orize-response-mode

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 --save @zhaow-de/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('@zhaow-de/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 @zhaow-de/oauth2orize-fprm. Web Message response mode is implemented by @zhaow-de/oauth2orize-wmrm.

License

The MIT License

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

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago