Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

oauth-dyn-reg

1.0.2 • Public • Published

Build Status Coverage Status Dependency Status License

oauth-dyn-reg

This is an implementation of the draft OAuth 2.0 Dynamic Client Registration Protocol.

Installation

npm install oauth-dyn-reg

Usage

var register = require('oauth-dyn-reg');
 
var metadata = { /* See RFC section 2 for what goes here */ };
var registrationEndpoint = /* See RFC section 3 */;
 
register(metadata, registrationEndpoint, function callback(err, resp) {
    if (!err) {
        // resp contains your client's registered metadata
        // NOTE: resp may differ from metadata, the server MAY change values
    }
});

An OAuth 2.0 token maybe optionally be given after the callback parameter.

References

  1. Draft OAuth 2.0 Dynamic Client Registration Protocol
  2. OAuth 2.0 Authorization Framework

Install

npm i oauth-dyn-reg

DownloadsWeekly Downloads

17

Version

1.0.2

License

Apache-2.0

Unpacked Size

569 kB

Total Files

12

Last publish

Collaborators

  • avatar