I need to use Python to view some lists in Sharepoint.
I have successfully authenticated via urllib2 and NTLM while connected via a VPN, however when not connected I am unable to. The authentication method which has been set up for external users i.e. not on a VPN is Forefront Universal Access Gateway (I can't change this). This is a form of Single Sign on gateway I believe.
Is there any way of authenticating to a Forefront UAG within urllib2 or similar? At the moment I am getting 302 redirect errors:
TransportError: HTTP Error 302: The HTTP server returned a redirect error that
would lead to an infinite loop.The last 30x error message was: Found
When debugging in the browser, this response code seems to have something to do with it:
Request URL:
https://xx.x.com/uniquesig....../uniquesig0/InternalSite/RedirectToOrigURL.asp?site_name=portal&secure=1
Request Method:GET
Status Code:
302 Object moved
Unfortunately my HTTP skills aren't up to deciding whether to give up now or persist. The cookies stored in the response appear to be very complicated. I have also tried HttpBasicAuthHandler and HttpDigestAuthHandler to no avail.
Does anyone have any ideas, or can help me decide whether it's worth going down the potentially painful road of trying to get this to work?
Thanks