Which motherboard do you use?
kubiiik
Posts
-
about $2k to $2.5k to spend on a dev machine this year, need CPU recommends -
c# WebBrowser returns unauthorized for different domain usersAccording to the new information I got, the server end has only implemented WindowsBasicAuthenticator, which ignores these domains. But unless the server end implementation is updated, I will not know that for sure. Anyway, thank you for your time :)
-
c# WebBrowser returns unauthorized for different domain usersEddy Vluggen wrote:
You should be able to sign in on your own website without modifications. The WebBrowser-control is "just" an instance of IE, nothing special.
Just to clarify, we do not display any login page in the webBrowser. If the user log in using regular browser, the log in page is displayed. But when using the C# winforms app, the log in is set in the app and used as string in the
Authenticate
method.Eddy Vluggen wrote:
The thing that threw me off was the reference to "other domains". You wouldn't be able to authenticate people from the domain our company uses, simply because it is outside the network.
I don't understand the domain users much (I had to google more info about it), but I think that the domain controller should handle the users (according to http://www.howtogeek.com/194069/what-is-a-windows-domain-and-how-does-it-affect-my-pc/[^]).
-
c# WebBrowser returns unauthorized for different domain usersYes, the user can log in using the form on webpage with the given credentials. In the web form the user selects the domain, put down the username and password. As I was told the domain and the username are then put together like this "domain\username" when the logging is being processed. That led me to conclusion that I should concatenate the domain and the username in the winforms app too. But I'm getting unauthorised. So I thought that there is something else I should set..
-
c# WebBrowser returns unauthorized for different domain usersThe app I'm connecting to, runs on our server. There is also web login to the server app. The users log in using domain with their username (domain\user1). I'm not very familiar with this technology but I will look up necessary facts, if you need more info.
-
c# WebBrowser returns unauthorized for different domain usersHi. I'm using WebBrowser to display authenticated web page. I implemented the interfaces decribed in this post.
object obj = myBrowser.ActiveXInstance;
IOleObject oc = obj as IOleObject;
oc.SetClientSite(this as IOleClientSite);string authHeader = "WWW-Authenticate: Negotiate\r\n";
myBrowser.Navigate(_URL, "", null, authHeader);I'm using
Negotiate
so I can use also SSO. The authenticate method is implemented like this:public int Authenticate(ref IntPtr phwnd, ref IntPtr pszUsername, ref IntPtr pszPassword)
{
pszUsername = Marshal.StringToCoTaskMemAuto("user");
pszPassword = Marshal.StringToCoTaskMemAuto("pass");
return S_OK;
}It works well. But the problem is when I want to authenticate the user with different domain. This doesn't work:
pszUsername = Marshal.StringToCoTaskMemAuto(@"domain\user");
pszUsername = Marshal.StringToCoTaskMemAuto("user@domain");I'm not able to display the page for users with different domains. It returns unauthorized. I don't know what changes to make so it's working.. Thank you.
-
Modern day Javascript DevelopmentYou are not the only one.. I feel the same. Maybe that's some kind of test..