Skip to content

Support jwt guarded identity via custom token claim#1277

Merged
jfallows merged 4 commits intoaklivity:developfrom
akrambek:feature/jwt-identity
Oct 4, 2024
Merged

Support jwt guarded identity via custom token claim#1277
jfallows merged 4 commits intoaklivity:developfrom
akrambek:feature/jwt-identity

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
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
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