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

Support jwt guarded identity via custom token claim #1277

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

akrambek
Copy link
Contributor

@akrambek akrambek commented Oct 3, 2024

Description

Support jwt guarded identity via custom token claim.

Fixes #1276

@akrambek akrambek marked this pull request as ready for review October 3, 2024 23:21
@@ -29,11 +29,13 @@ final class JwtGuardContext implements GuardContext
private final Long2ObjectHashMap<JwtGuardHandler> handlersById;
private final LongSupplier supplyAuthorizedId;
private final EngineContext context;
private final Configuration config;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this?

Comment on lines 81 to 84
JsonbConfig keyConfig = new JsonbConfig()
.withAdapters(new JwtKeySetConfigAdapter());
Jsonb jsonb = JsonbBuilder.newBuilder()
.withConfig(config)
.withConfig(keyConfig)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's inline the JsonbConfig into the parameter of the .withConfig(...) method.

@jfallows jfallows merged commit 9499bef into aklivity:develop Oct 4, 2024
5 checks passed
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.

Support jwt guarded identity via custom token claim
2 participants