This plugin allows you to search for files in your OneDrive account.
To build this plugin, you need to setup a new project in the Microsoft Azure Portal.
- Go to the Microsoft Azure Portal
- Create a new project.
- Search for App Registrations
- Add a new registration
- Supported account types: Accounts in any organizational directory and personal Microsoft accounts
- Leave "Redirect URI" empty
- Add an authentication platform
- Go to Authentication
- Add a platform > Android
- Enter the debug package name (de.mm20.launcher2.plugin.onedrive) and the signature hash of
your debug
key
- You can use the following command to generate the signature hash:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
- You can use the following command to generate the signature hash:
- Click Configure > Done
- In the newly created Android section, click on Add URI
- Add package name (de.mm20.launcher2.plugin.onedrive) and signature hash of your release key
- Download the client details
- In the debug client row, click on View
- Copy the JSON below MSAL Configuration
to
app/src/debug/res/raw/msal_auth_config.json
(you need to create this file first) - Add
"account_mode": "SINGLE"
to the JSON (see the providedmsal_auth_config_example.json
)
- Repeat the previous step for the release config
- Add the required scopes
- Go to API permissions
- Add a permission
- Select Microsoft Graph > Delegated permissions
- Tick the following scopes:
- Files.Read.All
- User.Read
- Click Add permissions
This plugin is licensed under the Apache License 2.0.
Copyright 2023 MM2-0 and the Kvaesitso contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.