MSO-365-E5-AR

所属分类:虚拟/增强现实-VR/AR
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-01-03 08:40:11
上 传 者sh-1993
说明:  MSO 365 E5配置总成
(MSO 365 E5 AR)

文件列表:
images/
LICENSE
main.py
time.log

# **MSO_E5_Dev_AR** Python application based on Git Actions that use Microsoft Graph API. This guide will provide you with easy-to-understand steps for setting up and running the application. ### Special Notes/Thanks ### * Normal version address: github.com/HarryVed/Microsoft-Developer-Subscription-Renew-Free ## **Prerequisites** - A GitHub account - An existing or new Microsoft Developer E5 account ## **Setup Steps (Encrypted Secure Version)** 1. Register a new application in Azure Active Directory. - Go to https://entra.microsoft.com/ - Applications > App reginstrations > New registration - Select "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant)" - Select "Web" for the redirect URL, and enter "**[http://localhost:53682/](http://localhost:53682/)**" for the redirect URL. - Save Application ID - Go to Certificates & Secrets > New - Save the Secret value. 3. Set API permissions. (may not be required) - Go to API Permissions > NEW - Select Microsoft graph > Application permissions - Select the following permissions: **`files.read.all`**, **`files.readwrite.all`**, **`sites.read.all`**, **`sites.readwrite.all`**, **`user.read.all`**, **`user.readwrite.all`**, **`directory.read.all`**, **`directory.readwrite.all`**, **`mail.read`**, **`mail.readwrite`**, **`mailboxsetting.read`**, and **`mailboxsetting.readwrite`**. - "Grant admin consect for MSFT" for all 13 selected permissions. 4. install rclone in your system. It is required to get refresh token (one time only) 5. Execute the command **`rclone authorize "onedrive" "id" "secret"`**. - **id** is the Application ID you get it from previous steps - **secret** is the Application secret you get it from previous steps - Execute, When browser window opens and MS login page shows, edit the URL's `scope` query part and replace its value with `Mail.Read+Mail.ReadWrite+MailboxSettings.Read+MailboxSettings.ReadWrite+Directory.Read.All+Directory.ReadWrite.All+Files.Read.All+Files.ReadWrite.All+Sites.Read.All+Sites.ReadWrite.All+User.Read+User.Read.All+User.ReadWrite.All+offline_access` - Press Enter, Select admin account. - on success, go to the prompt and save the `refresh_token`. 7. Keep Application ID, Secret, Refresh_token handly you will need it in the next step 8. Go to the project settings and from the left hand side menu select Secrets and Variables > Actions 9. Click **New repository secrets.** and create three variables and set the value as given below - Name: **`CONFIG_ID`** value is App ID - Name: **`CONFIG_KEY`** value is App secret - Name: **`REFRESH_TOKEN`** value is Refresh token 10. Goto the project setting again and choose Actions menu and scroll down until you see **Workflow permissions click Read and write permission option** 11. Go to your personal settings page on GitHub, select Developer settings > Personal access tokens > Generate new token. (may not be needed) - Set the name to **`GITHUB_TOKEN`**. - Check the options **`repo`**, **`admin:repo_hook`**, and **`workflow`**. - Generate the token. 12. Run the action Workflow 13. Click on the Actions tab above to see the log of each run and check if the API is called correctly and if there are any errors. ## **Additional Information** - The default setting is to run three rounds every six hours from Monday to Friday. You can modify your own crontab to change the frequency and time. - If you need to modify the API calls, you can check the Graph Explorer at https://developer.microsoft.com/graph/graph-explorer/.

近期下载者

相关文件


收藏者