Retrieve user info post social connection signup

When enabling users to login via social identity providers, we also wish to store some of the user information(at least name) of the newly created user, in our database for future reference. Is there a way to do that?

As the access_token has no information of that sort, do we need to retrieve the user info using get user management API call?
I also figured out that on setting the scope as openid, profile and not setting any audience, we can get a JWT id_token which contains all the user information.

But since we are using the tokens for authenticating users to access our API, we need to pass the audience claim, and thus the profile information is missing from the token.

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

1 Like