Filesystem Storage For Microsoft Drives
fs_storage_ms_drive · OCA/storage
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by15/251 module depends on it
-
Maturity18/25In 3 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
This addon extends the functionality of the fs_storage module to allow the system to use Microsoft Drives (OneDrive, Sharepoint) as a storage backend.
All the interactions with Microsoft SharePoint are done through the Microsoft Graph API, which is a RESTful web API that enables you to access Microsoft Cloud service resources. To authenticate with Microsoft Graph, the addon uses the OAuth 2.0 protocol, which is a standard for authorization that allows third-party applications to access user data without exposing their credentials. All the calls are done using the credentials of the odoo user performing the action, which means that the user must have linked their Microsoft SharePoint account to Odoo in order to use this addon. See the microsoft_drive_account module documentation for more information on how to link a Microsoft Drive account to an Odoo user.
When calls are made to the Microsoft Graph API through this addon, the addon will check if the credentials are still valid. If they are not, it will refresh them using the refresh token that was obtained during the initial authentication process. This means that the user does not have to re-authenticate every time their credentials expire, as long as they have granted permission for Odoo to refresh their credentials.
Dependencies
- Odoo dependencies
- Python dependencies
- fsspec>=2025.0.0, msgraphfs, fsspec>=2024.5.0
- System dependencies
- None
- Required by
- fs_folder_ms_drive
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
update_refresh_token_on_user(self, res, client=None, db_name=None, user_id=None)@api.model
No new fields.
Public methods (0)No public methods.
Loading…
Loading…