malkstar / ms_teams_websockets

Expose your Teams client's local websockets API data as Home Assistant sensors.
MIT License
17 stars 3 forks source link

Unable to get token in new Teams desktop client #15

Open loryanstrant opened 1 year ago

loryanstrant commented 1 year ago

Checklist

Is your feature request related to a problem? Please describe.

The new Teams desktop client now has the API functionality, but does not provide the functionality to generate or access the API key. Apparently simply having a device request access to the websocket is all is required, as you then approve it from the desktop client (which I have observed from simply pressing one of the Teams buttons on the Stream Deck).

Describe the solution you'd like

For the configuration screen to be able to do what it did before, but without the requirement of the API key

Describe alternatives you've considered

None sorry

Additional context

Not sure what else to add here

AntoineGS commented 12 months ago

I was writing a connector for Teams/HA and ran into this project so I decided to see about forking it and updating it to work with the new Teams. After figuring out how to access the new API, I attempted to update the project to connect to the new Teams and I noticed that unlike its predecessor it will not allow connections to its API from other machines 😭 So as it stands, I do not think this integration will work with the new Teams.

My project includes JSON examples from the new API if anyone is curious: https://github.com/AntoineGS/teams-status-rs