oauth2orize-wmrm

0.0.3 • Public • Published

oauth2orize-wmrm

Version Build Quality Coverage Dependencies

OAuth2orize response mode plugin providing support for Web Message Response Mode.

This response mode uses HTML5 Web Messaging instead of a redirect URI to return authorization responses from the authorization server.

Install

$ npm install oauth2orize-wmrm

Usage

Parse Request Extensions

The web message response mode defines additional parameters needed in the authorization request. Register support for these extensions with a Server instance in order to parse the parameters:

server.grant(require('oauth2orize-wmrm').extensions());

Add Response Mode

For each grant in which web message response mode is desired, add support by passing a modes option containing Web Message response mode. For example, using the token grant:

server.grant({ 
  modes: {
    web_message: require('oauth2orize-wmrm')
  } }, 
  oauth2orize.grant.token(function(client, user, ares, done) {
    // TODO: issue token
  })
);

Considerations

Specification

This module is implemented based on OAuth 2.0 Web Message Response Mode, draft version 00. As a draft, the specification remains a work-in-progress and is not final. The specification is under discussion within the OAuth Working Group of the IETF. Implementers are encouraged to track the progress of this specification and update implementations as necessary. Furthermore, the implications of relying on non-final specifications should be understood prior to deployment.

License

The MIT License

Copyright (c) 2016-2017 Jared Hanson <http://jaredhanson.net/>

Sponsor

Readme

Keywords

none

Package Sidebar

Install

npm i oauth2orize-wmrm

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • jaredhanson