Jetpack by WordPress.com
[resolved] OAuth2 auth flow doesn't redirect back to wordpress.com (7 posts)

  1. matthew_d
    Posted 3 years ago #

    • Registered a blog on wordpress.com
    • Registered a developer app on wordpress.com (oauth2)
    • Tested oauth2 auth flow with wordpress.com blog, it worked
    • Installed latest wordpress on my own domain
    • Installed Jetpack on my own domain
    • Connected jetpack to wordpress.com, it worked
    • Tried to authorize client to post on my own domain, it failed

    The flow starts off as expected, I'm asked to select which blog I want to authorize the client to access (the wp.com blog, or the blog on my own domain). When I select the blog on my own domain, I am redirected to my domain with a sign-in page asking for authorization. I enter my username and password, and the admin panel loads with jetpack-code, jetpack-user-id, and jetpack-state parameters in the URL. Either I should not be directed to my own blog in the first place because I've already authorized the wordpress.com account to govern the blog on my own domain or after re-authorizing on my own site I should be redirected back to wordpress and then back to the client.

    No errors are displayed to me, but there is a line in the error log that looks like this:

    WordPress database error Duplicate entry 'jetpack_nonce_1370543379_3idHjdJNru' for key 'option_name' for query INSERT INTO wp_options (option_name, option_value, autoload) VALUES (...) made by do_action('login_form_jetpack_json_api_authorization'), call_user_func_array, Jetpack->login_form_json_api_authorization, Jetpack->verify_json_api_authorization_request, Jetpack->add_nonce.

    I have tried with Jetpack 2.2.5 and 2.2


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    Could you send us more information about your app and your site URL via this contact form, so we can have a closer look at the issue?


  3. matthew_d
    Posted 3 years ago #

    I've filled out that form with the requested information. Let me know if you need anything else.

  4. matthew_d
    Posted 3 years ago #

    This topic was marked resolved, but it has not been resolved (that might have been a mistake on my part). I haven't received any communication via email or other means.

    Do you know what the issue is?

  5. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    I marked the thread as resolved because I could see your email in our system. We will do our best to help you there.
    One of our API experts will reply to you soon, although you might have to wait a bit longer than usual because some of our developers are away on a meeting this week.
    Rest assured though, one of them will reply to you as soon as they get to your email.

  6. mazard
    Posted 2 years ago #

    We are experiencing exactly the same problem here, did you found any solution?

  7. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #

    @mazard Could you please start your own thread, as per the Forum Welcome?

    if you could post your site URL there, that would be really helpful.
    If you want it to remain private, you can also contact us via this contact form:

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic