• Resolved johnmcg

    (@johnmcg)


    Hi,
    I’m using Postman to try and connect and use wp api.
    I’ve followed all of the instructions but continue to get the same error:

    “error”: “unsupported_grant_type”,
    “error_description”: “Grant type \”password\” not supported”

    I’m posting in the body as application/x-www-form-urlencoded:
    grant_type:password
    client_id:xxxxxxxxxxx
    client_secret:xxxxxxxxxxx
    //username:johnmcg
    //password:xxxxxxxxxxx

    I’ve reset Basic Authorization to no authorisation.
    I’ve changed the site to use Apache and not CGI or Fast CGI
    and I’ve added
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    in the .htaccess
    and still the same error.

    This is the free version.
    I need to get this sorted because I want to use the WordPress api to update a production site from Filemaker.

    Thanks!
    John

Viewing 1 replies (of 1 total)
  • Plugin Author Justin Greer

    (@justingreerbbi)

    Hi John,

    Thanks for trying WP OAuth Server. from the looks of what you are trying to accomplish, you will need to upgrade to a licensed version of the plugin. WP OAuth Server supports all the grant types that OAuth2 has (along with OpenID Connect) but the community version here on the forums only supports “Authorization Code”.

    Authorization Code is great for SSO from website to website and in some cases HTML5 apps but if you need to use “User Credentials” (aka “password”) as the grant type, only pro supports this.

    I am happy to answer any questions about upgrading outside of the forums here on .org. You can contact me via email or by visiting https://wp-oauth.com.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘“error”: “unsupported_grant_type”,’ is closed to new replies.