The plugin handles the following:
- User Authentication: It uses MSAL to automatically authenticate (in "automatic" mode) or allows the use of a predefined token (in "manual" mode). The plugin detects the account type (consumer, business, or SharePoint) and retrieves the corresponding token.
- Selection Interface (Picker): Opens a popup window that allows the user to browse, search, and select files. Depending on the configuration, different views can be displayed (files, recent, shared, etc.), and it can even start in a specific folder or section.
- Actions on Selected Files: Once files are selected, the plugin allows actions such as downloading, sharing, or moving files. The action to execute is defined in the pick_action property and can be:
- download : Automatic download.
- share : Generates a shareable link.
- move : Moves the file to a destination folder (requires configuring the destination ID).
- select : Selection without additional action.
- State Updates and Events: Numerous states are published (e.g., URLs, IDs, thumbnails, etc.), and events are triggered that can be used in Bubble workflows to trigger custom actions or update the interface.
- Security and Optimization: It incorporates input validation, threat detection (ThreatDetector), and secure token storage. Additionally, it uses caching mechanisms and retries to optimize requests to Microsoft Graph.
Comments (00)