Provide better detection of requiring sign-in
Certain query types require sign-in, such as the has:* operators.
Try to detect a more complete list of queries that make no sense if
not signed in. Also, when handling a REST API failure, detect
"Invalid authentication" responses as also requiring a new session.
This will still clear any user input if they choose to log in
(since the user will be redirected to the login endpoint and the
request discarded), but they will have a more consistent error.
Bug: Issue 2414
Change-Id: I7f8edb80cfeead3347a6758146682b3d06667d09
2 files changed