0

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?

data_henrik
  • 16,724
  • 2
  • 28
  • 49
  • 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
  • 1
    I 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

0 Answers0