andstatus / andstatus

Multiple accounts client for multiple Social networks. For Android
http://andstatus.org/
Apache License 2.0
309 stars 71 forks source link

No obvious way to "forget/clear" stored OAuth data in a case of authentication or authorization problem #529

Closed yvolk closed 3 years ago

yvolk commented 3 years ago

As @redmatrix noted in https://github.com/andstatus/andstatus/issues/528#issue-854105220 once Client registration data is obtained from a server, there is no way to delete it without deletion and re-creation of corresponding "Social network" in AndStatus. Actually, the same applies to User's authorization data. We can delete and re-create the User's Account in order to initiate auth process.

Making a backup and manual modification of its data (as described here: https://github.com/andstatus/andstatus/issues/528#issuecomment-816427848 ) is a workaround, but apparently not for an ordinary User.

Proposed solution:

I think that the most intuitive for a User way to solve the problem: Add "Clear authentication data and log in again" ("Clear credentials and Log in again") button to the "Account data" window. (AndStatus Settings -> Accounts -> Manage accounts -> click on the problematic account).

On the button click both Client registration data and User's auth data is cleared. After that OAuth process starts the same way it was done on the first account creation.

yvolk commented 3 years ago

@redmatrix I released this in v.58.03, available here: #456 Please check!