agent-system / tools /ms_auth.py
sp103107's picture
Upload folder using huggingface_hub
e20bd8e verified
Raw History Blame Contribute Delete
276 Bytes
from O365 import Account
def setup_oauth():
client_id = "your_client_id"
client_secret = "your_client_secret"
account = Account((client_id, client_secret))
if account.authenticate():
print("Authenticated!")
return account
return None