Commit Graph

22 Commits

Author SHA1 Message Date
jlestel
b900a98d08 feat: Respect Retry-After header on 429 response code (#3943)
* Respect 429 response code instructions

* format

* up

* up

---------

Co-authored-by: Julien <julien@citio.digital>
2024-06-07 10:10:35 +02:00
Adrian Kumpf
8756c66bca Fix typos 2023-02-03 21:20:10 +01:00
Adrian Kumpf
0d6e288c70 Encrypt API tokens (#2360)
Store API tokens encrypted in the database.

During the database migration a randomly generated key will be used encrypt the tokens if no ENCRYPTION_KEY environment variable was provided.

If the application is started without the presence of an ENCRYPTION_KEY (or if the key failed to decrypt the existing tokens), the UI will display a warning with further instructions.
2022-02-18 17:03:13 +01:00
Adrian Kumpf
8aa772872a Remove support for logins with username/password 2022-01-21 19:09:32 +01:00
Adrian Kumpf
0e4e551489 Fix flaky test 2021-11-12 19:27:41 +01:00
Adrian Kumpf
451b23634c Sign out if API repeatedly returns 401 response 2021-11-05 18:53:50 +01:00
Adrian Kumpf
be76577d5b Enter captcha code in a separate view
Addresses #1836
2021-07-16 18:28:25 +02:00
Adrian Kumpf
1a90cdeadf Allow to sign in w/o captcha
Addresses #1658
2021-06-02 11:24:45 +02:00
Adrian Kumpf
e557152dfb Consolidate return types 2021-06-01 10:41:26 +02:00
Adrian Kumpf
827f5aa33d Support Tesla's captcha verification 2021-06-01 00:53:32 +02:00
Adrian Kumpf
8513d56b9f Allow to sign in with API tokens (#1450)
* Allow to sign in with API tokens

* Test signing in with API tokens

* Add button to go back to login with credentials

* Add note about how to get API tokens
2021-03-16 18:54:48 +01:00
Adrian Kumpf
3bb2d3086f Remove support for legacy auth 2021-01-30 18:06:13 +01:00
Adrian Kumpf
d825fc1723 Allow to use the legacy authentication API 2020-12-29 15:05:38 +01:00
Adrian Kumpf
bb7df800a5 Allow to enter MFA codes 2020-12-20 22:18:52 +01:00
Adrian Kumpf
c278aa207f Try to keep using tokens if initial refresh fails
Addresses #774
2020-06-04 09:52:31 +02:00
Adrian Kumpf
60631907ef Replace mojito with finch 2020-05-14 14:11:20 +02:00
Adrian Kumpf
9f05bc31fa Gracefully handle invalid authorization grants
Fixes #336
2020-01-03 21:25:10 +01:00
Adrian Kumpf
b725d3bdeb Refactor api module 2019-12-22 14:49:22 +01:00
Adrian Kumpf
a4007b207b Tweak error handling 2019-09-30 14:32:18 +02:00
Adrian Kumpf
8355a0bed2 Remove deprecated sign-in via env variables 2019-09-14 02:57:45 +02:00
Adrian Kumpf
477b88acde Persists tokens after auto refresh 2019-08-01 20:01:44 +02:00
Adrian Kumpf
0fecc5eb7e Test TeslaMate.Api 2019-07-31 17:40:15 +02:00