Power Automate API Request - SCA Endpoint - Private key
I'm trying to connect the Power Automate to the Wise API. Basically, API tells me that his endpoint is SCA protected.
So, I had to upload a public pem key. When I start the request it will fail and return me a token (X-2FA-Approval)
After that I've to do a new request passing X-2FA-Approval parameter again and add the token sign with private key as basencode64 in header (X-Signature)
I create this two request and a receive this token in the first step, but I don't no if its possible to pass the sign token into the X-Signature, because the token will change every new trigger
I don't not if I made myself clear, but here is the steps from the API:
Client makes a request which requires strong authentication. (See picture)
The request is declined with HTTP status403 / Forbiddenwith the following response headers
X-2FA-Approvalcontaining the one-time token (OTT) value which is what needs to be signed (See picture)
Client signs the OTT with the private key corresponding to a public key previously uploaded for signature verification. (Is it possible to do it using power automate? I've the private and public key .pem files)
Client repeats the initial request with the OTT provided in theX-2FA-Approvalrequest header and the signed OTT in theX-Signaturerequest header. (See picture)
Customer has authenticated and the action is completed. You will receive a response withx-2fa-approval-resultstatusAPPROVEDin headers.