Simplify the authentication code paths #3350
authorJocelyn Turcotte <jturcotte@woboq.com>
Sat, 5 Sep 2015 13:37:20 +0000 (15:37 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Sat, 5 Sep 2015 14:00:45 +0000 (16:00 +0200)
commit89f69209dde7b5f859073cc9f7401aae2a847b07
tree979756650dd2f934feb795f85d35aed0bac86ca5
parent94a57fe8d52dc8e44d6598b16204a307818a0a4a
Simplify the authentication code paths #3350

The AccountState is now the only class responsible for triggering credentials
fetching from the keychain or from the user.

With the ShibbolethRefresher out of the question it's possible
to remove the invalidateAndFetch virtual and manually call invalidateToken.
This also allows us to move that code from Account to AccountState.
In the end this also allows us to move the fetch() call from the
ConnectionValidator and use the same code path as for invalid credentials.
src/gui/accountstate.cpp
src/libsync/account.cpp
src/libsync/connectionvalidator.cpp
src/libsync/connectionvalidator.h
src/libsync/creds/abstractcredentials.h