I need to get username as one of the claim in the access token which i received. But in default i didn't received it. I gone through their documentation about custom claim mapping but i was still confused. Can anyone know the request body to get username as claim in access token in IBM appid?
Asked
Active
Viewed 60 times
0

data_henrik
- 16,724
- 2
- 28
- 49

I.vignesh David
- 113
- 7
-
Where do you want to get the name? Are you using Cloud Directory or any other IdP in App ID? What is returned in "sub"? – data_henrik Dec 08 '21 at 11:33
-
In sub i received some unique identifier. – I.vignesh David Dec 08 '21 at 11:36
-
1I have an app which extracts the email / username from the ID token: https://github.com/IBM-Cloud/github-traffic-stats/blob/master/backend/ghstats.py#L319 It is using OIDC against App ID. You could try to obtain an ID token and then decode it to see its claims. – data_henrik Dec 08 '21 at 11:45