Skip to content

Addon seams

Each seam has a default in lib/addon/ and is resolved through the override registry every time it is called, so an override registered at bootstrap takes effect regardless of module load order.

Overriding a seam
import { addons } from 'oauth-server-ts/lib/addon/index.js';
addons.override({
findAccount: async (oidc, id) => myDirectory.lookup(id)
});
  • assertJwtClientAuthClaimsAndHeader
  • loadExistingGrant
  • findAccount
  • expiresWithSession
  • issueRefreshToken
  • pairwiseIdentifier
  • rotateRefreshToken
  • idFactory
  • secretFactory
  • defaultResource
  • useGrantedResource
  • getResourceServerInfo
  • sectorIdentifierUriValidate
  • assertClaimsParameter
  • assertJwtClaimsAndHeader
  • deviceInfo
  • interactionPolicy
  • introspectionAllowedPolicy
  • getCertificate
  • certificateAuthorized
  • certificateSubjectMatches
  • triggerAuthenticationDevice
  • validateBindingMessage
  • validateRequestContext
  • processLoginHintToken
  • processLoginHint
  • verifyUserCode
  • rarForAuthorizationCode
  • rarForCodeResponse
  • rarForRefreshTokenResponse
  • rarForIntrospectionResponse