Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Getting 411 Lenght Required on ADFS call

$
0
0

Hello,

I have configured Azure with a ADFS instance. The configuration seems to be right, I imported everything needed in Azure and was able to use the metadata in ADFS. So all seems to be fine and well, but now I'm trying to call the ADFS service and it responds with: (411) Lenght Required. It doesn't seem to matter which endpoint I call, I have the idea the call never even reaches the endpoint. Can this be IIS configuration or something like that?

I found some articles online stating that "Content-Length:0" should be specified in the header of a call, but these calls are generated from within the .NET framework (ServiceModel). Stack trace is as follows:

   at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
   at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout)
   at System.ServiceModel.Security.SecurityUtils.OpenCommunicationObject(ICommunicationObject obj, TimeSpan timeout)
   at System.ServiceModel.Security.SecurityUtils.OpenTokenProviderIfRequired(SecurityTokenProvider tokenProvider, TimeSpan timeout)
   at System.ServiceModel.Security.SecurityProtocol.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Security.SecurityProtocol.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
The code is from a sample which is supposed to work, but doesn't work with our ADFS. Any ideas?

MCTS Web Application Development, SharePoint enthousiast.


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>