• Resolved Jay

    (@jaytfl)


    Hello there,

    I am able to receive the response for Authorization Endpoint, i.e. /wp-json/moserver/authorize.

    However, when I am pinging for Token Endpoint, it returns me below error:

    {“error”:”invalid_grant”,”error_description”:”The authorization code has expired”}”

    I made sure to check on whether the correct code is being passed, client_id, client_secret, etc. Not sure what’s causing this issue.

    I have made sure to enable the below header for my nginx setup:

    add_header Access-Control-Allow-Headers “Authorization”;

    Could you please help me out with this?

    Thanks,

    Jay.

    • This topic was modified 1 year, 4 months ago by Jay.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Nimesh

    (@nimeshatxecurify)

    Hello @jaytfl ,

    Thanks for reaching out to us!

    The error message indicates that the authorization code received at the token endpoint is expired, and therefore our plugin is unable to process the request further.

    Since every authorization code has an expiry period, that might be the reason behind the error, in case you are re-using the same authorization code from your previous requests. I would recommend using the fresh authorization code while making a request to the token endpoint.

    In case you need further assistance, please enable troubleshooting in our plugin, and reproduce the issue. You can then reach out to us using the Support widget in the plugin, and we will be able to assist you further.

    Please feel free to contact us if you need anything!

    Thread Starter Jay

    (@jaytfl)

    Hello there,

    The code is immediately being used in the next line itself.

    I’ve enabled the troubleshooting. However, when I am trying to add the error message, it throws an error.

    • This reply was modified 1 year, 4 months ago by Jay.
    Plugin Contributor Nimesh

    (@nimeshatxecurify)

    Hello @jaytfl ,

    In that case, could you please enable troubleshooting in the miniOrange OAuth Server plugin, and reproduce the issue?

    Once done, please use the Support Widget in the bottom right corner of the plugin, to raise a ticket with our technical support team to assist you further with this.

    Looking forward to hearing from you.

    Thread Starter Jay

    (@jaytfl)

    Hello Nimesh,

    I have already responded via email that I received but haven’t gotten any response yet.

    Thanks,

    Jay

    Plugin Contributor Nimesh

    (@nimeshatxecurify)

    Hello @jaytfl ,

    Thanks for your response.

    We have received your support ticket, and our technical team is currently investigating the issue. We will get back to you over email with updates.

    Thank you for your support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The authorization code has expired’ is closed to new replies.