Microsoft account for Drive
microsoft_drive_account · OCA/storage
Health
83/100
good
-
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
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.51 MB
Module directory on disk
Code analysis
0 migration notes
4 models
3 views
2 HTTP endpoints
Description
This addon allows the user to link their Microsoft Drive account to Odoo. The stored credentials are then used by other addons to perform actions on Drive as the logged-in user.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- fs_storage_ms_drive
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
microsoft_drive_reset_account_form_view |
microsoft.drive.account.reset.form.view | microsoft.drive.account.reset | form | New |
res_users_form_view |
res.users.from.view | res.users | form | Inherits base.view_users_form |
res_users_simple_form_view |
res.users.from.view | res.users | form | Inherits base.view_users_form_simple_modif |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/ms_drive_account/status |
MicrosoftAuth.check_user_connected |
user | json | POST | |
| (inherited route override) | MicrosoftAuth.oauth2callback |
inherited | http | ALL | sudo |
Models touched 4
New fields (1)
-
user_idMany2one → res.usersrequired=True args: 'res.users'
-
reset_account(self)
New fields (0)
No new fields.
Public methods (1)-
generate_refresh_token(self, service, authorization_code)@api.model
New fields (3)
-
drive_microsoft_client_idCharconfig_parameter='microsoft_drive_client_id'default='' args: 'Microsoft Drive Client_id' -
drive_microsoft_client_scopeCharconfig_parameter='microsoft_drive_client_scope'default='' args: 'Microsoft Drive Scope' -
drive_microsoft_client_secretCharconfig_parameter='microsoft_drive_client_secret'default='' args: 'Microsoft Drive Client_key'
No public methods.
New fields (5)
-
microsoft_drive_oauth2_non_interactiveBooleandefault=Falsehelp="If set, this user will not go through the interactive OAuth2 authorization flow; The requested token will be requested to the authentication server directly using client credentials flows. (scope: 'https://graph.microsoft.com/.default', grante_type: 'client_credentials')"string='Microsoft Drive OAuth2 (non-interactive)' -
microsoft_drive_rtokenCharcopy=Falsegroups='base.group_system' args: 'Microsoft Drive Refresh Token' -
microsoft_drive_statusSelectioncompute='_compute_microsoft_drive_status'copy=Falsedefault='not_connected'store=True args: [('not_connected', 'Not connected'), ('connected', 'Connected')], 'Microsoft Drive Connection Status' -
microsoft_drive_tokenCharcopy=Falsegroups='base.group_system' -
microsoft_drive_token_validityDatetimecopy=False
-
SELF_READABLE_FIELDS(self)@propertyExtend the set of user fields that are allowed in sudo mode when a user reads their own profile. The check is all-or-nothing: if any requested field is not in this list, sudo is not applied and restricted fields will raise access errors. -
action_drive_disconnect(self)Disconnect the user from Drive. -
get_drive_authentication_url(self, from_url: str) -> str
Loading…
Loading…