Socket
Book a DemoInstallSign in
Socket

@jackdbd/fastify-introspection-endpoint

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jackdbd/fastify-introspection-endpoint

Fastify plugin that adds an [IndieAuth Token Introspection Endpoint](https://indieauth.spec.indieweb.org/#access-token-verification) to a Fastify server.

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
3
Maintainers
0
Weekly downloads
 
Created
Source

@jackdbd/fastify-introspection-endpoint

npm version install size CodeCov badge Socket Badge

Fastify plugin that adds an IndieAuth Token Introspection Endpoint to a Fastify server.

IndieAuth extends OAuth 2.0 Token Introspection by adding that the introspection response MUST include an additional parameter, me.

Installation

npm install @jackdbd/fastify-introspection-endpoint

Introspection Endpoint Options

Options for the Fastify introspection-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: "introspection-endpoint "
no
reportAllAjvErrors
(report all AJV errors)
booleanWhether to report all AJV validation errors.
Default: false
no

Example

{
    "includeErrorDescription": false,
    "jwksUrl": {},
    "logPrefix": "introspection-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