Hello I would like to do the following data action which allows to generate a token.
Here is my POSTMAN configuration :
i try this but i don't work :
thank you
Hello I would like to do the following data action which allows to generate a token.
Here is my POSTMAN configuration :
i try this but i don't work :
thank you
Are you doing this as part of the "custom auth" data action for a function? or are you trying to make a stand alone data action?
Usually when I need a token like this I would build a new web service data action, within that in you will set the credentials inside of the configuration to "user defined(Oauth)" this will automatically add a custom auth data action that can be configured to manage the tokens. I should be able to walk you trough the rest of it if that's what your intention is.
Assuming that you are implementing an OAuth flow, here is our documentation for this:
--Jason
Thanks to you 2 for your answers, so I did this then I activated it:
When I launch I have the following error message although I have defined the scope in the Oauth
It looks like you need to include the scope in the requestTemplate. The JSON example on this page includes a a scope and URL encoding:
--Jason
Hello,
I assume you are trying to implement First case: Access token request with a shared secret with Azure.
In this case, I think your custom auth should look like this -> Request Configuration
{
"requestUrlTemplate": "${credentials.loginUrl}",
"requestType": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Transfer-Encoding": "buffered"
},
"requestTemplate": "client_id=${credentials.clientId}&scope=$esc.url(${credentials.scope})&client_secret=${credentials.clientSecret}&grant_type=client_credentials"
}
I don't know for sure for the Transfer-Encoding: buffered header but I think it is needed with Azure AD (not supporting chunked).
Regards,
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.