browse-everything icon indicating copy to clipboard operation
browse-everything copied to clipboard

Error when token revoked

Open pgwillia opened this issue 10 years ago • 2 comments

Would expect to treat a revoked token like a new user and ask to be authorized, instead fails with error message. In ualbertalib/hydranorth based on projecthydra/sufia with browse-everything configured, visiting the Upload Cloud Provider Google Drive authorize the app, then editing your Google Account Permissions to revoke access to the app will result in the failure.

image

pgwillia avatar May 15 '15 21:05 pgwillia

One problem is that the controller sets the grant token in the session and the lib adapters are not expected to have access to the session. So when the 401 happens inside the adapter, its client-specific code cannot clear out the session. Essentially, we need a different approach.

atz avatar Sep 28 '16 18:09 atz

This was fixed with the Box driver in 43ed399d2170132a57261f4261a31e6aec699574

awead avatar Mar 23 '17 20:03 awead