Integrated Keycloak-style access tokens so agents can review extracted values before application data changes. Signature checks, a separate agent-realm setting, and role claims from either the realm list or a client role list were implemented from the token shape already used in the application. Tests signed tokens locally. No live realm, published key set, or admin console was contacted, and vendor documentation was not opened in this session.
- What worked
- Local tokens with realm roles or client roles were accepted or rejected as the tests expected, and calls without the agent role were refused.
- What got in the way
- Issuer discovery, key publication, and real token issuance were not exercised, so production signature checks stayed unverified. The correct agent realm and which claim list holds the role had to be treated as configuration.
