Skip to content

Commit a036be5

Browse files
authored
docs: fix links and cover missing topics
Merge pull request #208 from node-oauth/docs-update
2 parents 4494564 + c273123 commit a036be5

27 files changed

+261
-118
lines changed

.readthedocs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# We recommend specifying your dependencies to enable reproducible builds:
19+
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
# python:
21+
# install:
22+
# - requirements: docs/requirements.txt

docs/api/errors/access-denied-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The resource owner or authorization server denied the request. See :rfc:`Section
66

77
::
88

9-
const AccessDeniedError = require('oauth2-server/lib/errors/access-denied-error');
9+
const AccessDeniedError = require('@node-oauth/oauth2-server/lib/errors/access-denied-error');
1010

1111
--------
1212

docs/api/errors/insufficient-scope-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The request requires higher privileges than provided by the access token. See :r
66

77
::
88

9-
const InsufficientScopeError = require('oauth2-server/lib/errors/insufficient-scope-error');
9+
const InsufficientScopeError = require('@node-oauth/oauth2-server/lib/errors/insufficient-scope-error');
1010

1111
--------
1212

docs/api/errors/invalid-argument-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An invalid argument was encountered.
66

77
::
88

9-
const InvalidArgumentError = require('oauth2-server/lib/errors/invalid-argument-error');
9+
const InvalidArgumentError = require('@node-oauth/oauth2-server/lib/errors/invalid-argument-error');
1010

1111
.. note:: This error indicates that the module is used incorrectly (i.e., there is a programming error) and should never be seen because of external errors (like invalid data sent by a client).
1212

docs/api/errors/invalid-client-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Client authentication failed (e.g., unknown client, no client authentication inc
66

77
::
88

9-
const InvalidClientError = require('oauth2-server/lib/errors/invalid-client-error');
9+
const InvalidClientError = require('@node-oauth/oauth2-server/lib/errors/invalid-client-error');
1010

1111
--------
1212

docs/api/errors/invalid-grant-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The provided authorization grant (e.g., authorization code, resource owner crede
66

77
::
88

9-
const InvalidGrantError = require('oauth2-server/lib/errors/invalid-grant-error');
9+
const InvalidGrantError = require('@node-oauth/oauth2-server/lib/errors/invalid-grant-error');
1010

1111
--------
1212

docs/api/errors/invalid-request-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The request is missing a required parameter, includes an invalid parameter value
66

77
::
88

9-
const InvalidRequestError = require('oauth2-server/lib/errors/invalid-request-error');
9+
const InvalidRequestError = require('@node-oauth/oauth2-server/lib/errors/invalid-request-error');
1010

1111
--------
1212

docs/api/errors/invalid-scope-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The requested scope is invalid, unknown, or malformed. See :rfc:`Section 4.1.2.1
66

77
::
88

9-
const InvalidScopeError = require('oauth2-server/lib/errors/invalid-scope-error');
9+
const InvalidScopeError = require('@node-oauth/oauth2-server/lib/errors/invalid-scope-error');
1010

1111
--------
1212

docs/api/errors/invalid-token-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The access token provided is expired, revoked, malformed, or invalid for other r
66

77
::
88

9-
const InvalidTokenError = require('oauth2-server/lib/errors/invalid-token-error');
9+
const InvalidTokenError = require('@node-oauth/oauth2-server/lib/errors/invalid-token-error');
1010

1111
--------
1212

docs/api/errors/oauth-error.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Base class for all errors returned by this module.
66

77
::
88

9-
const OAuthError = require('oauth2-server/lib/errors/oauth-error');
9+
const OAuthError = require('@node-oauth/oauth2-server/lib/errors/oauth-error');
1010

1111
--------
1212

0 commit comments

Comments
 (0)