mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
1.6 KiB
1.6 KiB
Function: enableDetachedSignatureResponseChecks()
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)