plugins – Button to open external application in a new tab using http post request
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
3 times
I have a wordpress site and an external web application that I want to link to the wordpress site in such a way, that the user first logs into the wordpress site and than in wordpress has the ability to click a button (or link) and when the user clicks the button the external web application opens in a new tab and the user is automatically logged in that external aplication using the same credentials as in wordpress. Then the user would remain logged in the external application as long as he/she is also logged into wordpress. Then when the user logs out of wordpress the user in the external application tab is redirected to the external application login screen. To check if the user is logged in wordpress I plan to use the wordpress plugin OAuth server with the authorization code method.
Now my question is if there exists any wordpress plugin that would allow to open a link (external web application in my case) in a new tab but not with the standard http get request but with a http post request so that I can securely pass to the external application sensitive data like wordpress username and wordpress userid and a generated authorization code that can be passed to the OAuth wordpress plugin (I might not fully understand how the OAuth authorization code method works), or is the only way to do this by creating a custom wordpress plugin. If the only way to do this is by creating a custom plugin, how do you generate the authorization code for a user that can be passed to the OAuth wordpress plugin to check if a user is still logged into wordpress.
mangart is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
default

Leave an answer