mtenrero opened a new issue #3839:
URL: https://github.com/apache/couchdb/issues/3839
When trying to perform a JWT login, with iss, and kid certificates
configured, the cluster always return
400
```json
{
"error": "bad_request",
"reason": "Not a valid key"
}
```
## Description
## Steps to Reproduce
3.2.1 CouchDB Docker image
jwt config:
```toml
[chttpd]
│
│ authentication_handlers = {chttpd_auth, cookie_authentication_handler},
{chttpd_auth, jwt_authentication_handler}, {chttpd_auth,
default_authentication_ha │
│ ndler}, {chttpd_auth, proxy_authentication_handler}
[jwt_keys]
rsa:<redacted> = <pem_redacted>
```
curl example:
```bash
curl --request GET \
--url https://<redacted>/_session \
--header 'Authorization: Bearer <redacted>'
```
## Expected Behaviour
It should authenticate with JWT token.
## Your Environment
* CouchDB version used: 3.2.0
* Operating system and version: Kubernetes 1.21
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]