WP-API / OAuth2

Connect applications to your WordPress site without ever giving away your password.
GNU General Public License v2.0
172 stars 42 forks source link

Register OAuth 2 scheme in API index #7

Closed rmccue closed 7 years ago

rmccue commented 7 years ago

Adds .authentication.oauth2 to the index with URLs and detail about supported grant types:

{
    "authentication": {
        "oauth2": {
            "endpoints": {
                "authorization": "http://vagrant.local/wp/wp-login.php?action=oauth2_authorize",
                "token": "http://vagrant.local/wp-json/oauth2/token"
            },
            "grant_types": [
                "authorization_code",
                "implicit"
            ]
        }
    },
}