🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@jackdbd/fastify-revocation-endpoint

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackdbd/fastify-revocation-endpoint

Fastify plugin that adds an [IndieAuth Token Revocation endpoint](https://indieauth.spec.indieweb.org/#token-revocation) to a Fastify server.

1.2.0
latest
npm
Version published
Weekly downloads
7
133.33%
Maintainers
0
Weekly downloads
 
Created
Source

@jackdbd/fastify-revocation-endpoint

npm version install size CodeCov badge Socket Badge

Fastify plugin that adds an IndieAuth Token Revocation endpoint to a Fastify server.

Installation

npm install @jackdbd/fastify-revocation-endpoint

Revocation Endpoint Options

Options for the Fastify revocation-endpoint plugin

Properties

NameTypeDescriptionRequired
ajvInstance of Ajv
no
includeErrorDescriptionbooleanWhether to include an error_description property in all error responses. This is meant to assist the client developer in understanding the error. This is NOT meant to be shown to the end user.
Default: false
no
isAccessTokenRevokedFunctionPredicate function that returns true if a jti (JSON Web Token ID) is revoked.
yes
issuerstringThe authorization server's issuer identifier. It's a URL that uses the "https" scheme and has no query or fragment components. It MUST also be a prefix of the indieauth-metadata URL.
Format: "uri"
yes
jwksUrl
(JWKS public URL)
objectURL where the public JSON Web Key Set is hosted.
yes
logPrefixstringDefault: "revocation-endpoint "
no
maxAccessTokenAgestringMinimal Length: 1
no
meyes
reportAllAjvErrors
(report all AJV errors)
booleanWhether to report all AJV validation errors.
Default: false
no
retrieveAccessTokenFunctionFunction that retrieves an access token from a storage backend.
yes
retrieveRefreshTokenFunctionFunction that retrieves a refresh token from a storage backend.
yes
revokeAccessTokenFunctionHandler invoked when the token revocation endpoint has met all requirements to revoke a token. You should use it to mark the access token as revoked in your storage backend.
yes
revokeRefreshTokenFunctionHandler invoked when the token revocation endpoint has met all requirements to revoke a token. You should use it to mark the refresh token as revoked in your storage backend.
yes

Example

{
    "includeErrorDescription": false,
    "jwksUrl": {},
    "logPrefix": "revocation-endpoint ",
    "reportAllAjvErrors": false
}

jwksUrl: JWKS public URL

URL where the public JSON Web Key Set is hosted.

Properties

NameTypeDescriptionRequired
hashstringyes
hoststringyes
hrefstringyes
hostnamestringyes
originstringyes
passwordstringyes
pathnamestringyes
portstringyes
protocolstringyes
searchstringyes
searchParamsyes
usernamestringyes
toJSONyes

Additional Properties: allowed

Dependencies

PackageVersion
@fastify/formbody^8.0.2
@fastify/response-validation^3.0.3
@jackdbd/indieauth^0.0.0-canary.1
@jackdbd/oauth2^0.0.0-canary.1
@jackdbd/oauth2-error-responses^0.0.0-canary.1
@jackdbd/oauth2-tokens^0.0.0-canary.1
@jackdbd/schema-validators^0.0.0-canary.1
@sinclair/typebox^0.34.14
ajv^8.17.1
ajv-formats^3.0.1
fastify-plugin^5.0.1

⚠️ Peer Dependencies

This package defines 1 peer dependency.

PeerVersion range
fastify>=5.0.0

References

License

© 2024 - 2025 Giacomo Debidda // MIT License

Keywords

fastify

FAQs

Package last updated on 25 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts