palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Handle authentication redirects #49

Closed palazzem closed 4 years ago

palazzem commented 4 years ago

Overview

When calling the client.auth() method, the /api/login endpoint may return a result with Redirect: true. In that case, we should follow the redirect and try to authenticate again.