Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.89 KB

ClientSecretJwt.md

File metadata and controls

64 lines (46 loc) · 1.89 KB

Function: ClientSecretJwt()

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


ClientSecretJwt(clientSecret, options?): ClientAuth

client_secret_jwt uses the HTTP request body to send client_id, client_assertion_type, and client_assertion as application/x-www-form-urlencoded body parameters. HMAC is used for the assertion's authenticity and integrity.

Parameters

Parameter Type Description
clientSecret string Client Secret
options? ModifyAssertionOptions

Returns

ClientAuth

Examples

Usage with a Configuration obtained through discovery

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

let config = await client.discovery(
  server,
  clientId,
  clientMetadata,
  client.ClientSecretJwt(clientSecret),
)

Usage with a Configuration instance

let server!: client.ServerMetadata
let clientId!: string
let clientSecret!: string
let clientMetadata!: Partial<client.ClientMetadata> | string | undefined

let config = new client.Configuration(
  server,
  clientId,
  clientMetadata,
  client.ClientSecretJwt(clientSecret),
)

See