thobach / MMM-MicrosoftToDo

MMM-MicrosoftToDo is a 3rd party module for MagicMirror (https://github.com/MichMich/MagicMirror) that shows open tasks from task lists. The tasks are retrieved from the Microsoft To Do / Outlook (https://todo.microsoft.com).
MIT License
76 stars 28 forks source link

Instructions are outdated #116

Open gfmccutc77 opened 3 months ago

gfmccutc77 commented 3 months ago

I am new to Magic Mirror and programming for that matter. I am looking to use Microsoft To Do for a chore list for my kids with Magic Mirror, however, as of June 30th, 2020 all of the instructions that I can find are outdated. We can no longer follow along to get the Client Id information to be able to display the correct list. Does anyone have a solution for this??

thobach commented 3 months ago

Can you tell me in which step (and share a screenshot) you struggle to obtain the Client ID? I just created a new registration and was able to obtain a client ID. Thanks

gfmccutc77 commented 3 months ago

After I sign into Microsoft Entra ID, I go to the App Registration page, click New Registration and I get told that I have to subscribe to Azure or join the Microsoft M365 Developer Program. I attempted both, the developer program wouldn't allow me to do anything and I don't see the need in paying for Azure if there are other ways to get around this issue. The problem that I am having is that I am new to all this, so my knowledge of any type of work around just isn't there yet.

Screenshot 2024-08-23 192431 Screenshot 2024-08-23 192445

The second one is where I got the date from in the original post. Do I need the Azure subscription to make this work??

thobach commented 3 months ago

Can you try to login at http://portal.azure.com with a personal live account created at https://signup.live.com/ ? I created different test accounts this way in the past without requiring a credit card, etc.

gfmccutc77 commented 3 months ago

Ok, I got logged in, where would I go from there?? I went to create a resource, but I am not seeing anything that looks correct to me.

gfmccutc77 commented 3 months ago

I just attempted to create a Web App resource and It is making me sign up for a free trial with a credit card verification that is only good for 30 days. Does the same thing when I try to create a Function App as well. Anything I click on I get the same response.

hgbackup commented 2 months ago

I ran into the same issue. What should we do after we log in to http://portal.azure.com/?

andrewtwist commented 2 months ago

I've got the same issue. Any ideas on how to continue?

thobach commented 1 month ago

It seems you need to:

  1. create an Azure Subscription at https://azure.microsoft.com/en-us/pricing/purchase-options/azure-account?icid=portal, where you need to provide your credit card details, and then
  2. create an app registration at https://portal.azure.com/?quickstart=true&feature.tokencaching=true&feature.internalgraphapiversion=true#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade following the details from https://github.com/thobach/MMM-MicrosoftToDo?tab=readme-ov-file#web-app-registration-client-id

Can someone please confirm this works for them?

andrewtwist commented 1 month ago

That does work. But, will this cause charges or is this covered under the free apps?

InsanityXL commented 1 month ago

ok so having a m365 account is the basic part required. Web access section steps 4 - 9 are different.

when trying to run the refresh token part within vscode's terminal i get an error: _``` Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Content-Type: application/x-www-form-urlencoded" value of type "System.String" to type "System.Collections.IDictionary". At line:1 char:76

InsanityXL commented 1 month ago

ok then.. don't run the token refresh in VScode.. just ran it in a different terminal (cmd prompt) and it worked.