By: Yunus Raza user 05 Oct 2020 at 5:02 a.m. CDT

2 Responses
Yunus Raza gravatar
I have setup the OIDC to authenticate users. The flow is that the users type the URL e.g. https://mygateway.local and then they are redirected to Gluu, the user enters the credentials and its validated and then the response is sent back to the resource provider. This is working well. What i am trying to do is the following: 1. Create a local user in Gluu e.g. ABCSKyraza 2. Create a user in Active Directory e.g. ABCSK 3. User will login to https://mygateway.local using ABCSKyraza but when the response goes back to the resource party, it should trim the username to ABCSK (first 5 letters of the username) Is this possible?

By Michael Schwartz staff 05 Oct 2020 at 9:14 a.m. CDT

Michael Schwartz gravatar
Absolutely, you could do this with the dynamic scopes interception script. This enables you to transform the user claims.

By Yunus Raza user 07 Oct 2020 at 12:38 a.m. CDT

Yunus Raza gravatar
Thanks Mike, i will try that. For now i added another claim preferred_username and i am capturing that in the response instead of user_name