Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions are outdated #116

Open
gfmccutc77 opened this issue Aug 22, 2024 · 11 comments
Open

Instructions are outdated #116

gfmccutc77 opened this issue Aug 22, 2024 · 11 comments

Comments

@gfmccutc77
Copy link

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
Copy link
Owner

thobach commented Aug 23, 2024

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
Copy link
Author

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
Copy link
Owner

thobach commented Aug 24, 2024

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
Copy link
Author

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
Copy link
Author

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
Copy link

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

@andrewtwist
Copy link

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

@thobach
Copy link
Owner

thobach commented Oct 5, 2024

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
Copy link

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

@InsanityXL
Copy link

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

  • ... .0/token -H "Content-Type: application/x-www-form-urlencoded" -d "gra ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand


@InsanityXL
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants