oauth-dyn-reg

3.0.2 • Public • Published

oauth-dyn-reg

npm Downloads/week Coverage Status Dependency Status code style: prettier License

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

Installation

yarn add oauth-dyn-reg

Usage

import register from 'oauth-dyn-reg';

const metadata = { /* See RFC section 2 for what goes here */ };
const registrationEndpoint = /* See RFC section 3 */;

// resp contains your client's registered metadata
const resp = await register(metadata, registrationEndpoint);
// !!!: resp may differ from metadata, the server MAY change values

An OAuth 2.0 token maybe optionally be given as a third parameter.

References

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

Package Sidebar

Install

npm i oauth-dyn-reg

Weekly Downloads

2

Version

3.0.2

License

Apache-2.0

Unpacked Size

22.4 kB

Total Files

6

Last publish

Collaborators

  • awlayton