Skip to content

Widen error responses that trigger re-authentication#30

Merged
alienzach merged 1 commit intomasterfrom
reauth-fix
Jun 18, 2020
Merged

Widen error responses that trigger re-authentication#30
alienzach merged 1 commit intomasterfrom
reauth-fix

Conversation

@njhill
Copy link
Copy Markdown
Contributor

@njhill njhill commented Jun 16, 2020

Apart from token expiry, we have encountered at least two other kinds of persistent error responses that are resolved by re-authentication (presumably other kinds of token invalidation). The client is
effectively broken once this happens until a re-auth is done.

This change widens the "requires re-auth" criteria used to catch those and potentially others.

It also includes some related hardening/refactoring of how automatic re-auths are handled. The original RPC that triggered the auth failure is now included in the cause chain.

Apart from token expiry, we have encountered at least two other kinds of
persistent error responses that are resolved by re-authentication
(presumably other kinds of token invalidation). The client is
effectively broken once this happens until a re-auth is done.

This change widens the "requires re-auth" criteria used to catch those
and potentially others.

It also includes some related hardening/refactoring of how automatic
re-auths are handled. The original RPC that triggered the auth failure
is now included in the cause chain.
@njhill njhill requested a review from alienzach June 16, 2020 21:29
@alienzach alienzach merged commit af2329d into master Jun 18, 2020
@njhill njhill deleted the reauth-fix branch June 18, 2020 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants