0

My company share point uses windows authentication and uses HTTPS

I am trying to access company share point via the following code

import requests from requests_kerberos

import HTTPKerberosAuth, OPTIONAL

url_login = "https://www.company.com"

kerberos_auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)

r = requests.get(url_login, auth=kerberos_auth)

print(r.status_code)

I am getting an error 403 b'403 FORBIDDEN'

I am having access to this path as I am able to visit this site using my windows authentication but when i am trying to do the same via python script I get the above error. Can someone help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.