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.
▸ ClientSecretPost(clientSecret
): ClientAuth
client_secret_post
uses the HTTP request body to send client_id
and
client_secret
as application/x-www-form-urlencoded
body parameters
Parameter | Type | Description |
---|---|---|
clientSecret |
string |
Client Secret |
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.ClientSecretPost(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.ClientSecretPost(clientSecret),
)