Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.61 KB

enableDetachedSignatureResponseChecks.md

File metadata and controls

60 lines (42 loc) · 1.61 KB

Function: enableDetachedSignatureResponseChecks()

💗 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.


enableDetachedSignatureResponseChecks(config): void

This builds on top of useCodeIdTokenResponseType and enables the response to be validated as per the FAPI 1.0 Advanced profile.

Parameters

Parameter Type
config Configuration

Returns

void

Examples

Usage with a Configuration obtained through discovery

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.useCodeIdTokenResponseType,
      client.enableDetachedSignatureResponseChecks,
    ],
  },
)

Usage with a Configuration instance

let config!: client.Configuration

client.useCodeIdTokenResponseType(config)
client.enableDetachedSignatureResponseChecks(config)

See

ID Token as Detached Signature