'Windows Azure uthentification via curl

In our enterprise, we use Azure AD for the authentification.

I want now to do some curl commands for testing, but the command:

curl -u myuser:mypassword https://www.thewebsite.com -L

doesn't do the trick. Apparently, I'm stuck at the login windows.

Has anyone else a solution to do the Azure authentification from curl?

EDIT: as suggested by @SaiSakethGuduru-MT, adding --ntlm didn't work



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source