..
2021-09-18 23:37:52 +02:00
2021-09-18 23:37:52 +02:00
2021-09-18 23:37:52 +02:00
2021-09-18 23:37:52 +02:00

:ms-services

⚠️ Depends on non-free external services.

This module manages API calls to Microsoft APIs and connected Microsoft accounts.

Configuration

This module requires additional configuration in order to work properly. You can skip this step but then Microsoft API related features (e.g. OneDrive search) won't be available.

In order to use Microsoft Graph APIs, you need to setup a new project in the Microsoft Azure Portal first.

  1. Open the Microsoft Azure Portal
  2. Create a new project.
    1. Search for Azure Active Directory
    2. On the left side, select App registrations
    3. Add a new registration
      1. Supported account types: Personal Microsoft Accounts only
  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 ./src/debug/res/raw/msal_auth_config.json
  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