Get authentication token using HTTP Request
BeantwoordI've tested a POST token request using Postman with clientID and secret and it retrieves the token ok.
However, when I set an HTTP request in WData I get the error:
"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'grant_type'.
I've set the body text in JSON in 2 different ways as shown below and none of them works:
try #1 {"grant_type":"client_credentials","scope":"https://graph.microsoft.com/.default"}
try #2 [{"key":"grant_type","value":"client_credentials"},{"key":"scope","value":"https://graph.microsoft.com/.default"}]
Is there anything I'm missing in the way I'm setting the body text or the HTTP request?
Below are the log and input details:
I'll appreciate your comments, thanks
-
Hello Leandro. Could you please post the Postman collection here of the successful request made in Postman? Also which API endpoint specifically are you trying to hit? It looks like a Microsoft API. Could you link to the documentation for this particular endpoint?
0Hello Jeff, thanks for your reply. I'm sharing the postman collection of the successful request made in postman and below is the link to the endpoint documentation used to retrieve the token
Postman collection
https://drive.google.com/drive/folders/1SxPsjExf4fASNb3EZc0POAKwSDNwjMWU?usp=sharingMicrosoft API endpoint doc
https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flowBelow you can see the successful response in postman
Thanks, regards.0Hi Leandro,
Thank you for posting this additional information. Unfortunately, the HTTP Connector does not currently support integration with REST API endpoints that require OAuth2 authentication.
Sorry for the inconvenience. The forthcoming Connector Studio will be able to support these integration needs but that is tentatively planned for FY22 launch at this point.
What are you trying to accomplish with this integration? We may be able to recommend another approach if we can learn more.
Thanks,
Tony
0Hi @..., thanks for your reply.
Our goal is to establish a two way API commucation between OneStream and Workiva as follows:
Step #1. On Workiva, trigger OneStream REST API endpoint that extracts OneStream data
Step #2. On OneStream, upload OneStream data to WData using WData APIWe've achieved Step #2, we're now trying to achieve Step #1.
OneStream Authentication implementation uses external sign in, using OAuth2 (bearer token).
I hope this gives you an idea of what we're trying to accomplish, please let me know if you need more info. Any suggestion on how to perform this is going to be greatly appreciated.
Thanks, regards
0Thanks for the background. Unfortunately, there is little you can do for #1 at this time. The Connector Studio will allow you to build a Connector once it is generally available but for now, you will need to manually produce the file from OneStream and then process it with the Chain.
0Ok, thanks
0Hi,
I something similar. Generate a token through HTTP POST. Works through postman but when I execute from my chain I get that parameter Grant_Type is missing. It is specified in my body.
Is it still not supported?
I use Basic Authorization.
Br
Martin
0Hi,
I managed.
It is possible to pass the parameter as Form Value
Br
Martin Jul
0U moet u aanmelden om een opmerking te plaatsen.
Opmerkingen
8 opmerkingen