33 questions
0
votes
1
answer
417
views
wcf NetworkCredential with empty user name and password
I created a WCF service and the security mode has been set to Transport and ClientCredentialType is Windows. Below is my client side code:
NetTcpBinding binding = new NetTcpBinding();
binding.Security....
2
votes
1
answer
875
views
Does Go have some way of using DefaultNetworkCredentials with a proxy when making an HTTP request?
I'm writing a simple Go utility that makes some POST requests to the internet, but I need to go through a proxy and use NTLM without knowing the user's credentials. I've seen CSharp code like below:
...
0
votes
1
answer
342
views
Why does using the default proxy credentials not result in an automatic second http request following a 407 response?
I have set up fiddler as a proxy server requiring authentication following these instructions.
When I explicitly set the credentials I've set in Fiddler in my HttpClientHandler:
this.Proxy = ...
0
votes
0
answers
890
views
Connecting to SQL Server with current user
I need to build an service that connects to a SQL Server. My idea for authentication was to use the executing user, so I don't have to work manually with changing passwords.
To connect to the SQL ...
2
votes
0
answers
1k
views
C# How to set up Webproxy with NTLM Authtification
i wanna set up a webclient with a NTLM authtification proxy, but i have some Problems to hand over the DefaultCredentials. This is my current solution, but it doesn’t work.
textBox.Text = "";
...
1
vote
1
answer
138
views
WebBrowser control in web server not returning Cookie from Website
I am attempting to go to a HTTPS site from a WebBrowser Control in a Web Application, to get some basic information from the site (the site does not have a web service or any other API at this point)
...
0
votes
0
answers
312
views
CredentialCache.DefaultNetworkCredentials expiry
When running a web app or windows service and making web requests to other sites, I specify the credentials this way:
var test = (HttpWebRequest)WebRequest.Create(uri);
test.Credentials = ...
1
vote
0
answers
435
views
Download NuGet from behind a proxy using inline MSBuild Task
I am using the NuGet.targets file from NuGet to automatically download NuGet.exe and then restore the packets in my project.
This was working well, however at work we have a proxy and this method ...
1
vote
1
answer
678
views
Sharepoint 2010 GetListItems with Webservice - ListSoapClient with DefaultNetworkCredentials
I want to get some ListItems of a SharePoint 2010 List with a Win8 App. Everything works fine when I set the Credentials manually like:
BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
...
0
votes
1
answer
52
views
Macintosh/Apple web browsers get 401 utilizing web API 2.0 which calls remote URL
I have a web api 2.0 setup which calls a remote url internally and this code works great with PC's but not with Apple Mac browsers such as FireFox; they are getting a 401 error. Any help will be ...
2
votes
0
answers
766
views
CredentialCache.DefaultNetworkCredentials not returning currently logged in user. ExchangeService
I'm trying to pass the currently logged on user's credentials to the Exchange Web Services Managed API. Not trying to inspect them or check the values, just simply use them to make the call. The ...
2
votes
1
answer
1k
views
Get Default Credentials From A Windows Service
I want to be able to get the default credentials from a within a windows service. However if I call
var credentials = CredentialCache.DefaultCredentials;
Or
var networkCredentials = CredentialCache....
4
votes
1
answer
2k
views
Where does DefaultCredentials pull out "UserName" as a username for a web request?
There's a WinForms desktop application which tries to connect to SSRS service. The Reporting Server is configured to accept both Active Directory credential logins and also a credential for specific ...
2
votes
0
answers
437
views
NSURLCredentialStorage not work in iOS 7
hope i'm not unique iOS 7 victim :)
I have an application that synchronize its database with my web service, in my synchronization flow there is 14 call to web services, using Windows Authentication. ...
0
votes
1
answer
986
views
C# Windows Service Invalid credentials
I have a C# windows service used to pull some files from another machine on the same domain.
When I run my windows service as a console application, it pull files from the other computer. However, ...
1
vote
1
answer
379
views
DefaultNetworkCredentials not working from crm
I'm making a CRM 2011 workflow activity that is supposed to create folders in a given SharePoint. I am doing this by calling "MKCOL" method of HttpWebRequest.
Before making my code into a workflow ...
2
votes
1
answer
9k
views
Powershell: Discover default network credentials when launched from runas /netonly
I am looking for a way to capture the network credentials of the current session into a variable that I can pass later...
The point is to execute commands on a foreign domain that I have account ...
3
votes
1
answer
18k
views
C# HttpWebRequest with Proxy Credentials not passing credentials to proxy server
I am currently following something similar to this:
HttpWebRequest myWebRequest = (HttpWebRequest) WebRequest.Create("http://www.microsoft.com");
IWebProxy proxy = myWebRequest.Proxy;
Uri newUri = ...
0
votes
1
answer
464
views
Default Credentials work in 1 project but not in another?
I have a web service that uploads documents to Sharepoint and works fine using
System.Net.ICredentials creds = System.Net.CredentialCache.DefaultCredentials;
context.Credentials = creds;
I have re-...
25
votes
1
answer
78k
views
WebClient accessing page with credentials
I am trying to access a webpage on a same domain / same asp.net application, that is password protected. Credentials are the same both for webpage firing this call and webpage being accessed.
Here is ...
1
vote
0
answers
2k
views
How can I save network credentials to the Windows credentials cache/vault?
I am evaluating a 3rd party API WebDAV.NET for gaining access to SharePoint web folders. This API accepts the standard .Net network credentials and gives me two options:
ICredentials credential = ...
1
vote
2
answers
2k
views
How to pass credentials from one web service to another?
I currently have an app that calls a web service(WS1), which in turn calls another web service(WS2) to get/set information on the server hosted on WS2. I would like to be able to pass in the user ...
0
votes
1
answer
427
views
Using credentials for access control in C#
I have a SOAP -> web service structure, using C#. I have IIS - windows authentication turned on so I am adding the DefaultNetworkCredentials to the ClientCredentials in my service instance. I am ...
1
vote
1
answer
5k
views
NetworkCredential, CredentialCache, ICredentials All return Nothing
I have a Windows Form app and it keeps returning a 407 Proxy Server error when I try and return a JSON string from the Google servers. I have been led to believe that all I need to do is set the ...
1
vote
0
answers
6k
views
Call a web-service under current user credentials
I have a custom WCF web-service confugured with windows authentication and a WPF client application that needs to call the former. The service checks the username and pull some specific data from a ...
3
votes
2
answers
5k
views
How to get Alfresco login ticket without user password, but with impersonating user with user principal name (UPN)
I'm writing a DLL that has function for getting Alfresco login ticket without using user password, using only a user principal name (UPN). I’m calling alfresco REST API service /wcservice. I use NTLM ...
0
votes
2
answers
1k
views
WebRequest is getting generated from another IP instead my system IP?
I have the following code which bypass the proxy server for local machine and then send a WebRequest.
System.Net.HttpWebRequest Request;
System.Net.WebResponse ...
0
votes
2
answers
5k
views
ASMX: Setting User/Password at run-time
When I want to connect to my web service If I write it like this:
m_TransferServiceSoap.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
it is working. but I need a Login Form. so ...
37
votes
2
answers
16k
views
DefaultNetworkCredentials or DefaultCredentials
Which one am I supposed to use when I need to supply a credential to a proxy (local or in Network)?
What's the exact difference between these two?
5
votes
2
answers
8k
views
when using "default proxy" where does the username/password come from?
The "WebClient" class (and ClickOnce also) can use default proxy settings (e.g. put in application.config), however:
Where does the username / password come from? (I can't see a setting in the XML ...
34
votes
6
answers
53k
views
How do you get credentials (NetworkCredential) of currently logged in user?
I'm writing some code to utilise a 3rd party component, and I need to supply an object which implements ICredentials when I start to use it.
If I write the following...
var credential = new ...
30
votes
3
answers
56k
views
Using DefaultCredentials and DefaultNetworkCredentials
We're having a hard time figuring how these credentials objects work. In fact, they may not work how we expected them to work. Here's an explanation of the current issue.
We got 2 servers that needs ...
0
votes
3
answers
2k
views
DefaultNetworkCredentials has null values. Need to prompt user... how?
Under certain circumstances my desktop app using SharePoint web services ends up with DefaultNetworkCredentials having null values, and so the call fails. I need to then obtain the users credentials, ...