External IDP split claim

Hi there,
we are using Keycloak to broker an external IDP provider.
In order to retrieve some information from the customer IDP we have to extract information from a claim.
The claim has the following format
[info A]-[infoB]
What we need is to map this claim in another claim containig only info B.
Is there any way to split the original claim (split by -) and map inly the second part?

The Javascript mapper is no longer available by default where this could be done. You can implement one via SPI.

1 Like

Thank U,
since we are still on keycloak 16, we can use them.
WE will have a try
thanks