Closed lesensei closed 4 months ago
Hi
You have to copy / paste very quickly.. if memory serves correctly, I think you have less than 10 seconds before that token expires which we then exchange for an access token and refresh token which lasts a lot longer.
Unless Microsoft have changed something like shortening the lifetime of the first token of course.
I am having the same issue. To further troubleshoot, I am also trying the base python library and using the test harness test.py. I open an incognito window to ensure I get a new token (just refreshing an existing auth does not generate a new token). And within 2-3 seconds I paste redirected URL. I got an Unauthorized / 400 response.
Update: If I use the prior authentication URL (before the README was updated), and I follow that same process (incognito + quick copy and paste) I can auth.
Ok, I think I know whats going on, will release an update this evening to address.
1.2.0 just released as a beta which should sort this out
Tested and confirmed working. Thanks!
Indeed, it's now working for me as well 💯 Thanks a bunch ! And since I believe you are working on something similar for Google Family, god speed for that other project, @pantherale0 !
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4970 Installed Version | 1.34.0 Stage | running Available Repositories | 1414 Downloaded Repositories | 25 HACS Data | okHome Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okDashboards
dashboards | 1 -- | -- resources | 14 views | 7 mode | storageRecorder
oldest_recorder_run | 11 février 2024 à 18:42 -- | -- current_recorder_run | 23 février 2024 à 23:13 estimated_db_size | 3437.12 MiB database_engine | postgresql database_version | 13.13Checklist
Describe the issue
When trying to setup the integration, I do get the blank page and copy the URL, but get a message stating the authentication is invalid. The URL is in the form
https://login.live.com/oauth20_desktop.srf?code=M.C107_BL2.2.[GUID]&lc=1036
.Reproduction steps
Debug logs
Diagnostics dump
No response