I am in the process of building my api integration test which rely on idToken (with all user details). Is there any way to get the jwt programmatically?
At the moment I am able to get only the access_token calling /oauth/token endpoint:
I understand that you’d like to get the id token with your request.
After looking at your code snippet, it appears that you are passing only the read:sample scope in your /oauth/token request which is for the access token.
In this case, I recommend that you pass at least the openid scope to your request to get the id_token.