Public bug reported:

For most online services, you can only determine that your credentials
have expired by attempting to make an API call.  So we need some way for
the provider specific code to inform us that this has happened and react
appropriately.

This should look something like:

1. provider code signals problem via a CredentialsExpiredError exception

2. When Handler sees this error, rather than reporting it to the client,
ask online-accounts to authenticate again with interactive=true and
invalidateCachedReply=true.

3. If the authenticate() call returns an error, send an error to the
client.  If it succeeds, call the handler callback a second time with
the new credentials.

4. If the provider code throws CredentialsExpired a second time, report
an error to the user.

** Affects: storage-framework (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1616756

Title:
  Handle expired OAuth tokens

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/storage-framework/+bug/1616756/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to