Backport #16532 Co-authored-by: Matti R <matti@mdranta.net>
* Added asymmetric token signing. * Load signing key from settings. * Added optional kid parameter. * Updated documentation. * Add "kid" to token header.