https://mynabucaselink/api/o365 configured in the Azure app
When I try to link the accounts I get the invalid redirect URI (trying to use the internal URL), so I edit the request URL and change it to use nabucasa. This allows the authentication to suceed.
But then I get this in the logs:
2021-03-23 21:25:34 WARNING (SyncWorker_3) [custom_components.o365.utils] Could not loacte token at .O365-token-cache/o365.token
2021-03-23 21:40:49 ERROR (MainThread) [O365.connection] Unable to fetch auth token. Error: (mismatching_state) CSRF Warning! State not equal in request and response.
Following the tip in issue #100, I did enable "public client flows"
Similar issue as: https://github.com/PTST/O365-HomeAssistant/issues/100 I had an issue with the redirect URI. I have both
But then I get this in the logs: 2021-03-23 21:25:34 WARNING (SyncWorker_3) [custom_components.o365.utils] Could not loacte token at .O365-token-cache/o365.token 2021-03-23 21:40:49 ERROR (MainThread) [O365.connection] Unable to fetch auth token. Error: (mismatching_state) CSRF Warning! State not equal in request and response.
Following the tip in issue #100, I did enable "public client flows"
What else can I do to troubleshoot this