Skip to content

Add multiple claims in JWT response#10

Merged
emasab merged 2 commits intoemasab:masterfrom
prashah-confluent:dev_prashah_jwt_multiple_claims
Mar 12, 2026
Merged

Add multiple claims in JWT response#10
emasab merged 2 commits intoemasab:masterfrom
prashah-confluent:dev_prashah_jwt_multiple_claims

Conversation

@prashah-confluent
Copy link

Existing Behavior

The trivup setup used to generate JWT with only "sub" claim in the response.

Requirement

We are adding a config parameter to provide a custom claim (client_id). If this parameter is set the JWT should contain that additional claim as well. To keep it simple, we always want the JWT to return multiple claims ("sub" and "client_id"). This would help us to verify all the client side validations for JWT parsing.

New Behavior

Trivup setup now always generates a JWT with "sub" and "client_id" in the response.

Copy link
Owner

@emasab emasab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@emasab emasab merged commit 356a046 into emasab:master Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants