• Resolved artemn

    (@artemn)


    Hello All!

    I’m currently writing a plugin that needs to send data to a third-party application that uses OAuth2.0 as their authentication protocol for their API. As part of the protocol, I need to send an authentication request with a ‘redirect_uri’ parameter for re-directing ‘users’ back to my ‘application’ after the authentication request has finished processing. The documentation for this can be found at:

    https://developer.infusionsoft.com/getting-started-oauth-keys/

    The functionality I’m looking to support is this:

    1) A visitor to the WordPress website fills out a custom form
    2) My Plugin’s PHP code does some handling of the form data and saves it to a table
    3) I send the data to the third party application with a HTTP request
    4) End

    I do not quite understand what the ‘redirect_uri’ is supposed to be pointing to. Can anyone help me out?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t know anything about that API besides what I gleaned by a quick look at the doc you linked. The redirect URL should point to your site’s resource that will use the auth code resulting from the oAuth transaction. Without it subsequent API requests will not be honored. The URL can also serve to give the user feedback about what’s happening. It could be the same URL the user started from if its underlying code can properly handle the response with the auth code included. Or it could be a new page that might eventually be a confirmation or thank you page, though such a message is premature when the initial auth code is sent.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Plugin OAuth2 Integration’ is closed to new replies.