3.0.2 • Published 11 months ago

oauth-dyn-reg v3.0.2

Weekly downloads
32
License
Apache-2.0
Repository
github
Last release
11 months ago

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
3.0.2

11 months ago

3.0.1

11 months ago

3.0.0

11 months ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.2

4 years ago

1.0.1

9 years ago

1.0.0

9 years ago