Skip to content

Auth scheme Digest unauthorized on UWP #3333

Open
@StephenBonikowsky

Description

@StephenBonikowsky

Test case Http_ClientCredentialTypeTests.DigestAuthentication_Echo_RoundTrips_String_No_Domain fails on UWP runs but not on any other framework.

The only other Digest test fails its conditions so it is always skipped.

I was able to reproduce this locally...

  • clean.cmd -all
  • sync.cmd -p -- /p:ArchGroup=x64 /p:RuntimeOS=win10
  • build.cmd -framework=uap -buildArch=x64 -Release -- /p:RuntimeOS=win10
  • build-tests.cmd -framework=uap -buildArch=x64 -Release -Outerloop -- /p:RuntimeOS=win10 /p:ServiceUri=wcfcoresrv5.cloudapp.net/wcftestservice1 /p:Root_Certificate_Installed=true /p:Client_Certificate_Installed=true /p:SSL_Available=true /m:1

Error message...

System.ServiceModel.Security.MessageSecurityException : The HTTP request is unauthorized with client authentication scheme 'Digest'. The authentication header received from the server was 'Digest realm="ec558", nonce="MS8xMS8yMDE5IDExOjQyOjM4IEFN", opaque="0000000000000000", stale=false, algorithm=MD5, qop="auth"'.

Call Stack...

   at System.ServiceModel.Channels.HttpResponseMessageHelper.ValidateAuthentication()
   at System.ServiceModel.Channels.HttpResponseMessageHelper.ParseIncomingResponse(TimeoutHelper timeoutHelper)
   at System.ServiceModel.Channels.HttpChannelFactory1.HttpClientRequestChannel.HttpClientChannelAsyncRequest.ReceiveReplyAsync(TimeoutHelper timeoutHelper)
   at System.ServiceModel.Channels.RequestChannel.RequestAsync(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.RequestAsyncInternal(Message message, TimeSpan timeout)
   at System.Runtime.TaskHelpers.WaitForCompletionNoSpin[TResult](Task1 task)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(MethodCall methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(MethodInfo targetMethod, Object[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args) in E:\A\_work\6\s\corefx\src\System.Reflection.DispatchProxy\src\System\Reflection\DispatchProxyGenerator.cs:line 162
   at generatedProxy_1.Echo(String )
   at Http_ClientCredentialTypeTests.DigestAuthentication_Echo_RoundTrips_String_No_Domain()

Metadata

Metadata

Labels

BacklogLegitimate tasks of lower priority not in current dev schedule.bugThis is a product bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions