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

[policy] [generate-jwt] Custom claims can be only Strings #2850

Closed
zdenda-online opened this issue Nov 7, 2019 · 0 comments · Fixed by gravitee-io/gravitee-policy-generate-jwt#9

Comments

@zdenda-online
Copy link

@zdenda-online zdenda-online commented Nov 7, 2019

Expected Behavior

In Generate JWT policy it is possible to add custom claim as number (e.g. long based timestamp)

Current Behavior

Generate JWT policy can add only String based custom claims.

Possible Solution

Use the same logic as AM uses for custom claims that means
at GenerateJwtPolicy:239
instead of
executionContext.getTemplateEngine().convert(value)
use
executionContext.getTemplateEngine().getValue(value, Object.class)
for custom claims

@brasseld brasseld changed the title [APIM] [policy] [generate-jwt] Custom claims can be only Strings [policy] [generate-jwt] Custom claims can be only Strings Nov 7, 2019
@brasseld brasseld added this to the APIM - 1.30.0 milestone Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
API Management
Awaiting triage
2 participants
You can’t perform that action at this time.