[MGRTENANT-7] mgr-tenants - Impersonation client should have custom token mappers Created: 31/Dec/23  Updated: 31/Dec/23  Resolved: 31/Dec/23

Status: Closed
Project: mgr-tenants
Components: None
Affects versions: None
Fix versions: None

Type: Story Priority: TBD
Reporter: Natalia Zaitseva Assignee: Oleksandr Oliinyk
Resolution: Done Votes: 0
Labels: back-end, epam-eureka, eureka-phase4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Defines
defines UXPROD-4605 Component Ownership In Progress
Sprint: Eureka Sprint 41
Story Points: 2
Development Team: Eureka
RCA Group: TBD

 Description   

Overview

When switching affiliation the token for another tenant is retrieved with impersonation-client, currently, the client doesn't add custom token claims for user_id and username, which are important for _self API. 

Solution:

Add the following token mappers when creating the impersonation client:

  • username
  • user_id

Example from the Keycloak for login client:

 

Unable to render embedded object: File (/slm/attachment/732106904441/image.png) not found.

 


Generated at Thu Feb 08 22:31:22 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.