Connection to data service with Authorization header
Options
Hi,
We have a WCF data service that authenticate using basic authentication passing credentials in the Authorization header.
How can I connect with LinqPad to such data service?
Thanks,
We have a WCF data service that authenticate using basic authentication passing credentials in the Authorization header.
How can I connect with LinqPad to such data service?
Thanks,
Comments
-
What happens if you enter your username/password into the boxes provided?
-
I get a popup with the message: "WebException: The remote server returned an error (401) Unauthorized.".
This happens because the service code looks for Authorization header with credentials.
-
Are you sure it's configured to use basic authentication? LINQPad assigns a NetworkCredential object to the DataServiceContext's Credentials property with the username and password you supply. This should work with basic authentication.