As discussed it would be good to implement some kind of authentication factory per server.
Eventually it would be great to investigate
Manufacturers
|
# CozyTouch authentication using jwt |
|
if self.server == SUPPORTED_SERVERS["atlantic_cozytouch"]: |
|
jwt = await self.cozytouch_login() |
|
payload = {"jwt": jwt} |
Need to investigate if we can just pass this as a Bearer token to requests as well.
Uses bearer token in header, need to handle token refresh
Would the Somfy official API client id / secret work as well?
Endpoint is different (/enduser-mobile-web/1/enduserAPI/) and requires X-Auth-Token header.
/login endpoint doesn't exist, verify with checking another endpoint (/setup?).
self.headers.update ({
"X-Auth-Token": self.api_token
})
As discussed it would be good to implement some kind of authentication factory per server.
Eventually it would be great to investigate
Manufacturers
python-overkiz-api/pyoverkiz/client.py
Lines 134 to 137 in c5b8bf3
Need to investigate if we can just pass this as a Bearer token to requests as well.
Hi Kumo -> classic /login
Nexity Eugénie -> ssoToken / OAuth?
python-overkiz-api/pyoverkiz/client.py
Lines 140 to 143 in c5b8bf3
Need to investigate if we can just pass this as a Bearer token to requests as well.
Rexel Energeasy Connect -> broken (uses Azure B2C without user/password flow)
Tracked in Cannot authenticate via Rexel since they moved to their own identity system (Azure B2C) ha-tahoma#591.
Somfy (Europe) -> OAuth
Uses bearer token in header, need to handle token refresh
Would the Somfy official API client id / secret work as well?
Somfy (other) -> classic /login
Local auth (all, jailbroken)
Tracked in Add support for local API #187
Endpoint is different (
/enduser-mobile-web/1/enduserAPI/) and requires X-Auth-Token header./login endpoint doesn't exist, verify with checking another endpoint (/setup?).