1.5 KiB
1.5 KiB
Microsoft Graph Services
Microsoft Graph Services are used for OneDrive search. To enable OneDrive integration in your builds, follow these steps:
- 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
- Add an authentication platform
- Go to Authentication
- Add a platform > Android
- Enter the debug package name (de.mm20.launcher2.debug) 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.release) 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
ms-services/src/debug/res/raw/msal_auth_config.json(you'll need to create this file first)
- 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