Hi there,
I would like to access a sharepoint file behind a sharing link from a flow, so that I can fetch and send them as e-mail attachments later. The problem is that if I try to make a HTTP request to the sharing link, it always returns 401-UNAUTHORIZED.
The Site address I use is a Onedrive for Business address, the URL is the sharing link:

I looked into how the sharing linkg resolution works from the browser, it should return a 302 REDIRECT, and point to the actual resource. The only way I was able to produce the 302 response from the flow was when I entered a Cookie header with the rtFA and FedAuth cookies copied from my browser session. But that is not a solution...
I even tried Azure AD HTTP Request, but it failed the very same way.
I have set the connection up correctly, all other sharepoint actions are working without any issues. I just don't understand why I get 401? Help me understand and resolve please 🙂