-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CredentialCache.DefaultCredentials and UseDefaultCredentials on .NET8 Core #2236
Comments
Have you tried setting |
Yes, the same result sadly. |
RestSharp doesn't really do anything with those credentials apart from configuring the HTTP message handler with these parameters. I would suggest trying to use |
Thanks, I tried with this as well:
Same result :( |
The code you tried doesn't do more than RestSharp does. I suggested using |
Describe the bug
It appears that CredentialCache.DefaultCredentials is being used by RestSharp but it doesn't properly pass through the credentials for some reason. It should connect through Kerberos.
To Reproduce
Does not work on .NET 8 Core:
But does work on .NETFramework v4.8
Expected behavior
It should authenticate correctly.
Stack trace
401 response from the webserver.
Desktop (please complete the following information):
Additional context
I've also tried to use the useDefaultCredentials flag and the workaround here: dotnet/runtime#84545 of swapping the credentials and useDefaultCredentials arguments but that does not resolve the issue sadly.
Thank you!
The text was updated successfully, but these errors were encountered: