3.0.2 • Published 2 years ago

oauth-dyn-reg v3.0.2

Weekly downloads
32
License
Apache-2.0
Repository
github
Last release
2 years 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

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.2

5 years ago

1.0.1

10 years ago

1.0.0

10 years ago