JWTHeaders Parameter (Connect-ApacheCouchDB Cmdlet)
A collection of extra headers that should be included in the JWT header.
Syntax
Connect-ApacheCouchDB -JWTHeaders string
Data Type
cstr
Default Value
""
Remarks
The string should not contain any single quotes or double quotes and : and | have to be used as delimiters. For example:
JWTHeaders = kid : key_1 | Custom Header 1 : value;
If you need to use more complex values such as JSON objects or arrays, they have to be base64 encoded. For example:
JWTHeaders = kid : key_1 | my : eyJjdXN0b20iOlsianNvbiIsIm9iamVjdCJdfQ==;
By default, not all the headers in the JWT token are validated by the Apache CouchDB (only alg). See the documentation of required_claims for enforcing the validation of additional headers. In that case, you can configure this connection property as well so that the cmdlet includes them when generating the token.