Skip to main content

OneDrive

resource-pack:
delivery:
hosting:
- type: onedrive
use-environment-variables: false
client-id: ""
client-secret: ""
refresh-token: ""
upload-path: "server_resource_pack.zip"
# Optional proxy
proxy:
host: "127.0.0.1"
port: 7890
Enviroment Variables
  • CE_ONEDRIVE_CLIENT_ID
  • CE_ONEDRIVE_CLIENT_SECRET
  • CE_ONEDRIVE_REFRESH_TOKEN

Configuration Tutorial​

  1. Go to: https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/CreateApplicationBlade/quickStartType~/null/isMSAApp~/false?Microsoft_AAD_IAM_legacyAADRedirect=true
  2. Fill in the form as shown in the image and click Register. Ensure you select Web as the redirect type and enter http://localhost:8080. Image
  3. After clicking Register, go to the left sidebar and select App registrations. Image
  4. Click the All applications tab. Image
  5. Select the app you just created. Image
  6. Follow the steps shown in the image. Image
  7. Click Add a permission. Image
  8. Find and click Microsoft Graph. Image
  9. Click Application permissions. Image
  10. Follow the steps shown in the image. Image
  11. Click Certificates & secrets. Image
  12. Follow the steps shown in the image. Image
  13. Follow the steps shown in the image. Image
  14. Install Python 3.10+ and requests 2.32.4+, then click here to get the script and run it. Follow the prompts in the token retrieval program to proceed.