Office365-REST-Python-Client
Office365-REST-Python-Client copied to clipboard
Question - Sharepoint with Single-Sign-On
Hey, is it possible to authenticate via single sign on, to replace the way with user/password?
Here another question. If i run the following code snippet:
import requests
response = requests.get('https://domain.sharepoint.com/site')
print(response.status_code)
print(response.url)
I get this output with a large link (numbers changed):
200
https://login.microsoftonline.com/db76au59-a307-4020-bc00-50dead7d30c9/oauth2/authorize?client_id=00000000-0000-0ff0-ce00-000000000111&response_mode=form_post&protectedtoken=true&response_type=code%20id_token&resource=00000000-1100-
0aa0-ce00-000000000111&scope=openid&nonce=47002580CAA96CBD82FED0A45FF5B764A4E53A555644F4FC-BA14A00E4BED39C78A22BD611A3FEB49C500F768E8D71998302426E5335993CC&redirect_uri=https%3A%2F%2Fdomain.sharepoint.com%2F_forms%2Fdefault.aspx&s
tate=OA0w&claims=%9B%11id_token%11%1A%7B%99xns_cc%21%3B%7A%21values%12%3B%5C%22AP1%12%5D%7B%9D%8D&wsucxt=1&cobrandid=11aa7091-89e0-45b3-bb98-0bc53c9a8e6a&client-request-id=50c91aa0-a0c3-1300-c09b-043de98585f7
Is it possible to get the login information from this link?
Thanks a lot for your work, nice package! Cheers