Hi Experts,
I need some help in test connection on webservices using grant Type : JWT Bearer. I see the following error. But not sure what is requested_token_use is for?
Hi Experts,
I need some help in test connection on webservices using grant Type : JWT Bearer. I see the following error. But not sure what is requested_token_use is for?
Looking at the error, it seems that request body need the paraemer requested_token_use. This could be for tracking the reason why the token was requested from the target application.
It is difficult to understand what is the configuration on your end for test connection but if you can share more information, then we can probably assist you further.
Thank You.
Regards
Vikas
hi @chandramohans27,
Did you try this using postman and were you able to generate the access token.
Can you check if you have used the right authentication type. You might need to check if you have provided the correct client credentials if they have been used.
If you are able to generate the access token using postman then you need to replicate the same in ISC.
Thanks,
Uday
Thank you for sharing the configuration. But it looks strange to me because the error message states that request body should have the parameter “requested_token_use” but you are using GET request here.
As @udayputta mentioned, can you please execute this API from postman or some other tool to see if the request method should be GET or POST. Or may be you are missing some header. Or it could also be possible that you need here custom authentication.
Best is to test the connection in postman and then provide us the feedback so that we can assist you further.
Thank You.
Regards
Vikas.
Hi @vguleria
Below are the steps I followed manually in postman to test connection to Azure AD tenant using graph API.
Steps manually done in openSSL
1.) Created a JWT Payload and Header.
2.) Base 64 Encode the Payload
3.) Sign the JWT using private key.
After getting the signedJWT,
In Postman,
Token URL : https://login.microsoftonline.com//oauth2/v2.0/token
Below are the details given in the body to generate access token
client_id:9a8aefd3-794d-4512-b75f-4273a4e2*****
scope:https://graph.microsoft.com/.default
grant_type:client_credentials
client_assertion:*****************************
client_assertion_typeietf:params:oauth:client-assertion-type:jwt-bearer
Yes, it makes sense. Then I think you will need to use POST http method with below settings
Headers
Content-Type : application/x-www-form-urlencoded
Body
choose the body type as form data instead of raw data and then you should be able to generate the token.
Please make sure to give the authentication user name and password so that user can authenticate with azure.
If still does not work, may be then it will be a good idea to share the screenshot about the configuration so we can double check and assist you further.
Thank You.
Regards
Vikas.
Just to add make it as first operation and operation is Custom Authentication.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.