OAuth1 icon indicating copy to clipboard operation
OAuth1 copied to clipboard

Re-authenticating with the same client results in multiple entries on profile page.

Open kosso opened this issue 9 years ago • 3 comments

Using my test PHP client script am I able to successfully authenticate and connect remotely to my Wordpress API.

But when I log out and then re-authenticate a few times, then visit my wp-admin Profile page, I see multiple entries for the same client with the (now fixed) revoke button.

I understand that they'll each have different token credentials, but this list is going to get pretty untidy, pretty quickly if users (wisely) log out of their client apps when not needed.

What's the best way to deal with this, if any?

kosso avatar Mar 21 '16 13:03 kosso

Is there en endpoint for revoking the current Application's credentials as part of a log out process?

kosso avatar Mar 21 '16 18:03 kosso

Or should the OAuth server detect that the client has been authorized before and update the tokens, rather than create a new entry?

Update: Sorry, Thinking this through: I suppose that would invalidate any other client apps running on other devices, which may use the same consumer identity.

Something's not quite right about the way it's doing things now though. Unless I'm missing something. Thx.

kosso avatar Mar 21 '16 19:03 kosso

Hmm so I believe this is intentional, I've chatted to @rmccue about it before - basically we don't share the existing tokens, it's up to your client to save the tokens for later use in whichever way it sees fit (and secure!). I'll let @rmccue add the specific reasoning for that.

joehoyle avatar Oct 11 '16 15:10 joehoyle