~ci-train-bot/syncevolution/syncevolution-ubuntu-yakkety-landing-042

Viewing all changes in revision 4628.

  • Committer: Patrick Ohly
  • Author(s): Alberto Mardegan
  • Date: 2015-03-03 09:30:29 UTC
  • Revision ID: git-v1:ff12834be1e6d431b3f7deb7a8bc54686c78012c
AuthProvider: removed failure count

Remove the failure count from the getOAuth2Bearer() method, and add an
invalidateCachedSecrets() method instead.

This moves the logic of how to deal with failures back to the
AuthProvider backend and simplifies the session code, which only needs
to call invalidateCachedSecrets() when the token is wrong.
This will help implementing a similar logic for the getCredentials()
method, where authentication errors could lead to requesting a new
password.

[PO: avoid issue found via cppcheck: returning std::string::c_str() in
a method returning a std::string forces a string copy, which is
inefficient.]

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: