WP-API / Basic-Auth

Basic Authentication handler for the JSON API, used for development and debugging purposes
761 stars 281 forks source link

discovery in index #34

Closed mnelson4 closed 8 years ago

mnelson4 commented 8 years ago

Basic Auth is mentioned as a way to authenticate on http://v2.wp-api.org/guide/authentication/, and it's mentioned that you should be able to discover what authentication methods are available on http://v2.wp-api.org/guide/discovery/. So should the basic auth plugin add an entry into the index's "authentication" response property? It seems to me like it should (and I'm happy to make a pull request)

rmccue commented 8 years ago

Yeah, it probably should, although clients shouldn't actually use it. Advertising it might encourage more usage, whereas it's really only designed for development and testing.

mnelson4 commented 8 years ago

yeah that's a good point: by adding it to the index we're encouraging automatic discovery; development and testing will generally be NON-automated. ya so probably not...