• Tushar

    (@tushar4monto)


    Hello

    We get this error with postman for creating the access token

    {
    “error”: “unauthorized_client”,
    “error_description”: “The grant type is unauthorized for this client_id”
    }

    Please check this link for admin configurations https://prntscr.com/jojmpu

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

    (@justingreerbbi)

    Sorry for the issues you are experiencing. Be sure to use the grant type “Authorization Code” with the community version.

    Thread Starter Tushar

    (@tushar4monto)

    Hello

    I have used yours WordPress repository plugin Version: 3.4.5
    Now get this error
    {
    “error”: “unsupported_grant_type”,
    “error_description”: “Grant type \”Authorization Code\” not supported”
    }
    Please check below link
    https://prntscr.com/jok8w6

    If pass grant_type : authorization_code
    Please check below link
    https://prntscr.com/jok9uf
    Thank you

    Thread Starter Tushar

    (@tushar4monto)

    Hello

    Let us know any updates? do you need any clarification from our side?

    Plugin Author Justin Greer

    (@justingreerbbi)

    Sorry for the delay. This is odd as this grant type is always open by default.

    Please check your client by going to your client edit window in WP. Ensure that the check box “Authorization Code” is checked and then save.

    Let us know if they works for you.

    Thanks,
    Justin

    Hello

    I have a local instance of WP and am trying to generate the access token to use in a REST API app, which uses wpcom. wpcom requires oauth. I’ve got the app working on a site on wordpress.com. But I can’t get it to work on the local instance. I’m getting the same error as above from Postman.

    When I generated the access token from wordpress.com, I used the wpcom_oauth example app. However, it won’t work at all on the local instance. I have checked the Authorization Code checkbox for the client. I have tried with and without enabling the Implicit option.

    For Postman setup, I’m following the instructions on wp oauth docs. The error is:

    {
        "error": "unauthorized_client",
        "error_description": "The grant type is unauthorized for this client_id"
    }

    when I set the grant type to “password” as instructed by the above link.

    The message returned to Postman for the grant type of “Authorization Code” is:

    
    {
        "error": "unsupported_grant_type",
        "error_description": "Grant type \"Authorization Code\" not supported"
    }
     

    and for authorization_code

    {
        "error": "invalid_request",
        "error_description": "Missing parameter: \"code\" is required"
    }

    Please can you explain how we are supposed to create an access token with the community version of WP Oauth Server?

    Thanks
    Praful

    • This reply was modified 5 years, 11 months ago by prafulkapadia.
    • This reply was modified 5 years, 11 months ago by prafulkapadia.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get unauthorized_client’ is closed to new replies.