Title: WordPress Plugin OAuth2 Integration
Last modified: August 28, 2020

---

# WordPress Plugin OAuth2 Integration

 *  Resolved [artemn](https://wordpress.org/support/users/artemn/)
 * (@artemn)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-plugin-oauth2-integration/)
 * 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/](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](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-plugin-oauth2-integration/#post-13332632)
 * 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.

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [OAuth](https://wordpress.org/support/topic-tag/oauth/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/wordpress-plugin-oauth2-integration/#post-13332632)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
