简体   繁体   中英

GeckoFX (C#) - Programmatically login to SharePoint (NTLM)

I am currently attempting to use GeckoFx version 33 to automatically login to a SharePoint 2010 instance. I have attempted to following the suggestions from this post without much luck. Any help would be appreciated.

Thanks.

You might search for how to enable NTLM authenticaiton in Firefox. The same steps should work in GeckoFX.

This SuperUser question seems to cover enabling the relevant features in Firefox: https://superuser.com/questions/664656/how-to-configure-firefox-for-ntlm-sso-single-sign-on

It seems that you need to add the relevant URIs to the network.automatic-ntlm-auth.trusted-uris property.

Of course you'll need to do this programatically. For example:

string intranet_domains = @"my_intranet_domain.com, my_other_intranet_domain.com";
Gecko.GeckoPreferences.User("network.automatic-ntlm-auth.trusted-uris") = intranet_domains;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM