stacklok / stacklok/toolhive

Fetch user data from user-info endpoint for middleware

Open
#1,231 1 comment 0 reactions 1 assignee View on GitHub

@jhrozek is already working on this.

Since Jan 22, 2026.

Dominant language
Go
Stars
2.2k
Forks
300
Avg merge
1d 15h
Merged PRs (30d)
184

Description

For the auth and audit middleware, we look for certain user claims in the JWT, like sub and name to get the user's identity.

We should add a call to the /user-info endpoint if the required claims are not populated and get the claims from there.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.