Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #2681 adds targetToken support for ext jwt signers #2686

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andrewpmartinez
Copy link
Member

  • adds targetToken of values ACCESS, ID for management API CRUD
  • adds targetToken to client API reads
  • adds --target-token to external jwt signers CLI
  • updates/adds tests

- adds targetToken of values ACCESS, ID for management API CRUD
- adds targetToken to client API reads
- adds --target-token to external jwt signers CLI
- updates/adds tests
@andrewpmartinez andrewpmartinez requested review from a team as code owners January 23, 2025 22:20

DefaultClaimsProperty = "sub"

TargetTokenAccess = "ACCESS"
Copy link
Member

Choose a reason for hiding this comment

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

No TargetTokenID ?

Kid: S(uuid.New().String()),
Issuer: S(uuid.NewString()),
Audience: S(uuid.NewString()),
TargetToken: ToPtr(rest_model.TargetTokenID),
Copy link
Member

Choose a reason for hiding this comment

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

should there be a test when it's left empty or when it's an invalid value? i didn't see such a test but it's kinda hard to scan for a missing value

Kid: S(uuid.NewString()),
Issuer: S(uuid.NewString()),
Audience: S(uuid.NewString()),
TargetToken: nil,
Copy link
Member

Choose a reason for hiding this comment

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

oh i think i found the nil test

Copy link
Member

@dovholuknf dovholuknf left a comment

Choose a reason for hiding this comment

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

lgtm

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