I have this complicated cURL command that is working perfectly:
curl -L --negotiate -u : -b ~/cookiejar.txt "https://idp.domain.net/oauth2/authorize? scope=openid&response_type=code&redirect_uri=https://localhost:5001&client_id=client_id_here"
However it is not really feasible to replicate in C# using HttpClient. But I need to call the cURL command from .Net Core code and get the response back.
Is there a way to make a normal cURL command call in .Net Core (v3.1)?
(In case you are interested, this is the details on the cURL command: Replicate cURL Command Using Redirect and Cookies in .Net Core 3.1)