Can't authenticate with MS graph API
BigValen opened this issue · 1 comments
I've set the redirect URI on an App Registration to be the same as defined in;
homeassistant:
external_url: https://assistant.mydomain.net/
internal_url: https://192.168.0.22/
However, on authenticating, I get: "No code returned from Microsoft Graph Auth API" when I'm redirected to:
There is a link to https://www.home-assistant.io/integrations/http/#base_url on README.md - but I think that configuration is gone now ? It's not mentioned anywhere on that http integration page.
Hah. OK, this was problem between user & keyboard:
Turns out when you create an Azure 'client secret', it gives you a 'value' and an 'id'. I managed to use the 'id' as the secret, not the value. Also, if you can't dismiss the "I authorized successfully" button; restart homeassistant, and it'll work fine.
I'll close the bug, and leave this bug here in the hopes someone else can learn from my foolishness.