O365

Latest version: v2.1.1

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

2.1.1

- Tasks: support unsetting tasks due and reminder (Thanks RogerSelwyn)
- Removed Office 365 tasks file (api was deprecated on november 2024)

2.1.0

> [!IMPORTANT]
> **Breaking Change:** Removed custom authentication in favour of msal. Old tokens will not work with this version and will require a new authentication flow.

- Account: you can now work with multiple users by changing `account.username` when using auth flow type authorization.
- Account: The username of the logged in use was previously held in `current_username`, it is now in `username` as per the previous bullet
- Connection methods `get_authorization_url` and `request_token` are now present in the `Account`object. You will no longer need to use the ones from the `Connection` object unless doing something fancy.
- Account and Connection: the authentication flow has changed and now returns different objects which need to be stored from and passed into `get_authorization_url` and `request_token` (if using those calls).
- TokenBackend: they now inherit from the msal cache system. You can now remove tokens, get access scopes from tokens, add a cryptography manager to encrypt and decrypt and much more.
- Scopes are now longer stored into the connection. Scopes are only needed when authenticating and will be stored inside the token data on the token backend.
- Scopes: You should no longer supply 'offline_access' as part of your requested scopes, this is added automatically by MSAL.
- Scopes are now passed in as `requested_scopes` rather than `scopes`
- Token: The token layout has substantially changes, so if you were interrogating it at all, you will need to adjust for the change.

2.0.38

- Added 'on_premises_sam_account_name' to directory.py (Thanks danpoltawski)
- TokenBackend: Added DjangoTokenBackend (Thanks sdelgadoc)

2.0.37

- TokenBackend: Added BitwardenSecretsManagerBackend (Thanks wnagele)

2.0.36

Removed dependency: stringcase
Upgraded requirement requests-oauthlib
Added classifier python 3.12

2.0.35

Features:
- Tasks: Exposed status property (Thanks RogerSelwyn)
- Tasks: Added bucket_id to allowed update-attributes of Task (Thanks dekiesel)
- Drive: Added "hashes" attribute to File (Thanks Chrisrdouglas)
- Drive: get_item_by_path now prepends a slash if it's missing (Thanks dekiesel)
- Excel: Added "only_values" to "get_used_range" method (Thanks zstrathe)
- Query: Added negate to iterables inside Query
- Protocol: Added 'Europe/Kyiv' as valid Iana timezone (Thanks jackill88)
- Message: Added ability to add custom headers (Thanks ted-mey)

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.