Skip to content

Commit

Permalink
Feature ETP-801: Fix claims generation
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanMagnoli committed Dec 5, 2024
1 parent a8fab70 commit 9bbe9d8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,10 @@ private static Builder getJwtBuilder(User user, Role selectedRole, Organization
return JWT.create()
.withIssuer("sws")
.withAudience("sws")
.withClaim("ad_user_id", user.getId())
.withClaim("ad_client_id", selectedRole.getClient().getId())
.withClaim("ad_role_id", selectedRole.getId())
.withClaim("ad_org_id", selectedOrg.getId())
.withClaim("user", user.getId())
.withClaim("client", selectedRole.getClient().getId())
.withClaim("role", selectedRole.getId())
.withClaim("organization", selectedOrg.getId())
.withClaim("warehouse", selectedWarehouse.getId())
.withIssuedAt(new Date());
}
Expand Down

0 comments on commit 9bbe9d8

Please sign in to comment.