Files
threshold/internal
Johan Brandhorst-SatzkornandMichael Li 262693f47c Restore soft deleted users on authentication (#5549)
* internal/clientcache: restore user on login

A user that previously had its last auth token deleted
(for example, if they logged out), should be restored
again when they successfully authenticate again.

* internal/clientcache: delete keyringless expired auth tokens

Previously, we would only correctly delete auth tokens
that were expired (or deleted) if they were also in the
keyring.

* internal/clientcache: remove tautological condition

At this stage we already know that at is non-nil, because
the case above would have been true if it was nil.

* internal/clientcache: improve error handling

The previous error handling would have ignored API errors that were not ErrUnauthorized or ErrNotFound.
Handle all API errors the same as other unexpected errors.

* internal/clientcache: make errors distinct

These two error conditions are otherwise impossible
to tell apart.

* test(e2e): Update search test to catch bug (#5551)

---------

Co-authored-by: Michael Li <michael.li@hashicorp.com>
2025-02-24 09:16:07 -08:00
..
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-01-09 10:26:37 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2023-08-11 10:31:53 -07:00
2024-02-16 08:30:16 -05:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-01-09 10:26:37 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2025-02-19 09:14:41 -08:00
2023-08-11 10:31:53 -07:00
2025-02-04 16:42:19 -06:00