GNOME Bugzilla – Bug 672050
Should refresh GoaAccount if EnsureCredential fails
Last modified: 2012-03-15 09:24:58 UTC
If GOA's access-token is invalid (expired and cannot be refreshed, or user changed his password, etc) then EnsureCredentials dbus call will fail and AttentionNeeded dbus property is set to TRUE. In that case, empathy-auth-client should display the web auth page (using webkit) to let user re-enter his credentials, then call EnsureCredentials again to finally get the new access-token. This is done by just calling goa_provider_refresh_account().
Actually I was wrong. I tested by disconnecting my account, remove the facebook app from my fb settings, and they try to reconnect the telepathy account. I get a notification bubble saying "An online account needs attention" with a button "Open Online Accounts...". Clicking that button does not actually work, but if I open GOA (in g-c-c) manually, it shows a message for my account telling my credentials expired and I have to re-connect, then all is fine. So this case is actually already covered by GOA itself, even if user experience could be improved a bit.