Open bernji opened 2 years ago
@bernji check my guid, https://community.home-assistant.io/t/microsoft-to-do/139614/40, how you can fix this.
The trick is to set it in Azure and Home Assistant to localhost:8123 and when this redirect url page is called, you get a "page not found" but when you change the url it to your correct url it will work!
As described in #73 the "redirect URI" needs to be https instead of http. So I added as redirect URI in azure my https address (which has an invalid cert)
I added "https://192.168.0.88:8123/api/microsoft-todo" in my case.
Then I put the clientId and clientSecret in my configuration.yaml. restarted. then got a new configuration request in notifications. Here the problem starts.
The link contains the redirect_ui parameter which is http. A error will be thrown by azure because it does not match the one I added in azure (https). So i chaged the parameter to https.
I then got the notification that a new app want to connect to my account which I accepted. Then azure redircts to
https://192.168.0.88:8123/api/microsoft-todo?code=xxx&state=yyy
which does not work because I do not have a SSL certificate. So I changed to url back to http. Then I got a "500 Internal Server Error Server got itself in trouble" page.
What can I do?
I am not alone. Please see: https://community.home-assistant.io/t/microsoft-to-do/139614/36