-
Notifications
You must be signed in to change notification settings - Fork 68
Closed as not planned
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using a JWT guard with keys specified in the zilla config file and the request token does not contain the kid header authentication fails.
I assume the error is somewhere near:
Line 145 in a5bf600
| String kid = signature.getKeyIdHeaderValue(); |
As the kid seems to be used to look up the key without a fall back.
To Reproduce
Steps to reproduce the behavior:
- Configure Zilla as described here: https://docs.aklivity.io/zilla/latest/reference/config/guards/jwt.html
- Send a request with a JWT that does not contain a kid claim in the header
- See error in Zilla verbose log "GUARD_JWT_AUTHORIZATION_FAILED JWT token authorization failed for identity (). Invalid alg or key."
Expected behavior
Zilla figures out an appropriate key from the guard config.
Zilla Environment:
Start CMD for docker container
CMD ["start", "-v", "-e", "-Pzilla.engine.verbose=true", "-Pzilla.engine.debug=true"]
Attach the zilla.yaml config file:
https://docs.aklivity.io/zilla/latest/reference/config/guards/jwt.html
Client Environment:
curl request with JWT
Additional context
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working