Hi, I'm new in identityserver4. My request is like the following below:

I know the sub is the userid, but I could not get the username. Is there anyway I can get the username or even email or mobile in access token without send http request to the userinfo endpoint?
you can add your custom claims to your access token. Something like this
https://community.auth0.com/t/is-there-a-way-to-include-username-as-a-claim-using-resource-owner-password-grant-access-tokens/18769
Most helpful comment
you can add your custom claims to your access token. Something like this
https://community.auth0.com/t/is-there-a-way-to-include-username-as-a-claim-using-resource-owner-password-grant-access-tokens/18769