wp-api-console icon indicating copy to clipboard operation
wp-api-console copied to clipboard

Improve usage under configs with no auth

Open nylen opened this issue 9 years ago • 0 comments

If we don't specify authentication settings in a configuration here is what happens after clicking the Sign In button:

WP.com

image

WP core (without OAuth1 plugin installed)

image

WP core (with OAuth1 plugin installed)

image

Next steps

  • Maybe add a new auth provider auth/none.js and use it if the required parameters are not present - it doesn't make sense to have requests go through oauth1.js or oauth2.js if we know there is no auth.
  • Detect this condition and make some UI changes accordingly (disable the Sign In button; maybe show an "unauthed" indicator instead).
  • Add a note to the readme about this.
  • Improve error handling for authentication requests in general.

nylen avatar Nov 17 '16 02:11 nylen