Files
Kvaesitso/docs/docs/developer-guide/external-apis/microsoft.md
2022-10-09 22:20:15 +02:00

1.5 KiB

Microsoft Graph Services

Microsoft Graph Services are used for OneDrive search. To enable OneDrive integration in your builds, follow these steps:

  1. Go to the Microsoft Azure Portal
  2. Create a new project.
    1. Search for App Registrations
    2. Add a new registration
      1. Supported account types: Accounts in any organizational directory and personal Microsoft accounts
  3. Add an authentication platform
    1. Go to Authentication
    2. Add a platform > Android
    3. Enter the debug package name (de.mm20.launcher2.debug) and the signature hash of your debug key
      1. You can use the following command to generate the signature hash: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
    4. Click Configure > Done
    5. In the newly created Android section, click on Add URI
    6. Add package name (de.mm20.launcher2.release) and signature hash of your release key
  4. Download the client details
    1. In the debug client row, click on View
    2. 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)
  5. Repeat the previous step for the release config
  6. Add the required scopes
    1. Go to API permissions
    2. Add a permission
    3. Select Microsoft Graph > Delegated permissions
    4. Tick the following scopes:
      • Files.Read.All
      • User.Read
    5. Click Add permissions