Closed Bug 2084274 Opened 1 month ago Closed 1 month ago

Successful auth recovery should clear the `logged_out_from_auth_issues` state

Categories

(Application Services :: Fxa Client, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bdk, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsync-])

Attachments

(1 external file)

On initialization, if we're in the AuthIssues state we sometimes re-check the authorization status and start in the Connected state instead (code). I believe the same thing happens in the CheckAuthorizationStatus event handler code.

This means that the next call to get_refresh_token() will return None which will cause the operation to fail with an AuthorizationError when it should have succeeded. In the worst case, this could trigger another CheckAuthorizationStatus call, leading to an infinite loop.

(via GitHub webhook, authenticated as shared-secret)

Authored by https://github.com/bendk
https://github.com/mozilla/application-services/commit/a139f7b26184bf8d2f5171ca8ba9fb166dbf0329
[main] Bug 2084274 - clear the logged_out_from_auth_issues state (#7673)

(via GitHub webhook, authenticated as shared-secret)

Status: NEW → RESOLVED
Closed: 1 month ago
Flags: qe-verify+
Resolution: --- → FIXED
See Also: → 2092420
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: