I have been trying to figure this out the whole day without any luck.
We have a dynamics CRM environment secured through ADFS with an IFD configuration. The setup uses the WS-Federation protocol (through a WS-Federation passive endpoint), no SAML assertion endpoint is configured. I'm trying to consume the web api exposed by Dynamics CRM but I cannot figure out how to authenticate before submitting the request (I imagine I should retrieve the SAML token somehow, but without a SAML endpoint I cannot understand how..). Every attempt ended up with a 401 response that includes and the Http headers WWW-Authenticate: Negotiate and WWW-Authenticate: NTLM.
How could I retrieve the token programmatically and send it attached with the request? Is this even possible or should we change something in the ADFS setup?
I couldn't find any useful article/tutorial that clarifies it, any suggestion would be really appreciated.