Function: enableNonRepudiationChecks()

May 28, 2025 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


โ–ธ enableNonRepudiationChecks(config): void

Enables validating the JWS Signature of either a JWT Response.body or TokenEndpointResponse.id_token of a processed Response such as JWT UserInfo or JWT Introspection responses.

Note


Validating signatures of JWTs received via direct communication between the client and a TLS-secured endpoint (which it is here) is not mandatory since the TLS server validation is used to validate the issuer instead of checking the token signature. You only need to use this method for non-repudiation purposes.

Note


Supports only digital signatures using these supported JWS Algorithms.

Parameters

ParameterType
configConfiguration

Returns

void

Examples

Usage with a Configuration obtained through discovery to also disable the its HTTPS-only restriction.

let server!: URL
let clientId!: string
let clientMetadata!: Partial<client.ClientMetadata> | string | undefined
let clientAuth!: client.ClientAuth | undefined

let config = await client.discovery(
  server,
  clientId,
  clientMetadata,
  clientAuth,
  {
    execute: [client.enableNonRepudiationChecks],
  },
)

Usage with a Configuration instance

let config!: client.Configuration

client.enableNonRepudiationChecks(config)