Metadata-Version: 2.1
Name: odoo-addon-microsoft_drive_account
Version: 18.0.2.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Link user with Microsoft
Home-page: https://github.com/OCA/storage
License: LGPL-3
Author: ACSONE SA/NV,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===========================
Microsoft account for Drive
===========================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:45da0ca6403c800cbb29675b06c2f9065eed5626758a2c4d80391d732c38e8d7
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github
    :target: https://github.com/OCA/storage/tree/18.0/microsoft_drive_account
    :alt: OCA/storage
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/storage-18-0/storage-18-0-microsoft_drive_account
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/storage&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
   :local:

Configuration
=============

In order to use the Microsoft Drive Account module, you need to set
following configuration parameters in your Odoo instance:

- microsoft_account.auth_endpoint: The URL of the Microsoft
  authentication endpoint. This is usually
  `https://login.microsoftonline.com/{your <https://login.microsoftonline.com/{your>`__
  endpoint id}/oauth2/v2.0/authorize.
- microsoft_account.token_endpoint: The URL of the Microsoft token
  endpoint. This is usually
  `https://login.microsoftonline.com/{your <https://login.microsoftonline.com/{your>`__
  endpoint id}/oauth2/v2.0/token.
- microsoft_drive_client_id: The client ID of your Microsoft
  application. This is a unique identifier for your application that you
  can obtain from the Azure portal.
- microsoft_drive_client_secret: The client secret of your Microsoft
  application. This is a secret key that you can obtain from the Azure
  portal. It is used to authenticate your application with the Microsoft
  Graph API.

Optionally, you can set the following parameters:

- microsoft_drive_client_scope: The scope of the Microsoft application.
  By default the following scopes are used

  - offline_access
  - openid
  - Files.ReadWrite.All
  - Sites.ReadWrite.All

Usage
=====

On the user preference page, the user can link their Microsoft Drive
account to Odoo by cliking on the Drive button. This will redirect the
user to the Microsoft authentication page, where they can log in and
grant permission to Odoo to access their Drive account. Once the user
has granted permission, they will be redirected back to Odoo, where
their Drive account will be linked.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/storage/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/storage/issues/new?body=module:%20microsoft_drive_account%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* ACSONE SA/NV

Contributors
------------

- Laurent Mignon <laurent.mignon@acsone.eu>

Other credits
-------------

The development of this module has been financially supported by:

- ACSONE SA/NV

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-lmignon| image:: https://github.com/lmignon.png?size=40px
    :target: https://github.com/lmignon
    :alt: lmignon

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-lmignon| 

This module is part of the `OCA/storage <https://github.com/OCA/storage/tree/18.0/microsoft_drive_account>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
