From what I can tell, what I was trying to do is not possible.
The cURL request never actually touches the browser, it goes from the web app server to the wordpress site server so there in that context the web app server is the client. So when the redirect happens, the cookie is not set in the browser.
What I’ve done instead is a GET request passing my tokenized values in the query string. It’s not as secure this way as anyone who gets their hands on the token will technically be able to access the site and login but there doesn’t appear to be a way around that. At least the tokenized URL is never actually visible in the address bar so the typical user will not know what’s happening.
Related Posts:
- Changing user_nicename
- automated tests as a user?
- Creating login session via CURL
- User management system similar to wordpress one?
- Change CSS based on is_user_logged_in
- Admin Panel 404 Error after login
- How to block specific user id in custom login form?
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- is_user_logged_in() not working in homepage
- List users in a dropdown for login
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Create a global variable for use in all templates
- Integrating WordPress to my website, while keeping my own authentication system
- How to auto login user again after change user_login
- How to turn off redirection from ‘domain.com/login’ to ‘domain.com/wp-login.php’
- Authenticating to WordPress, using my own authentication two-factor system
- How to resolve error “Cookies are blocked due to unexpected output.”?
- How to track a users progress through pages by inserting data into WordPress Database?
- How can I default to all WordPress roles when parameter is not included in shortcode?
- Check if user is logged in when clicking certain links on certain pages
- WordPress shows registration link for non logged users
- Recovering WP Login Credintials in Code?
- How to get a list of all possible values of a specific user meta key?
- WordPress custom login form using Ajax
- Where Does WordPress Make cURL Requests? How To Add cURL Option
- User’s total comment count excluding comments on their own posts
- Why is my cookie not unsetting upon logout? [closed]
- export a csv file from the database with a cronjob
- How to debug my custom login form looping intermittently
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Modify user profile data through scripting?
- add_cap not working
- Do not execute If User is login as Administrator or any Specific Role
- get post content of particular post by url
- wordpress archive a user
- Best practice for show data to one specific user?
- Call to undefined function get_userdata() in plugin
- Should `wp_login` be used since it’s deprecated?
- How to redirect users based on role and content of redirect_to?
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- How to show a users bio on a page
- How can I open up my administrative panel to everyone?
- “operation successful” message
- php if username is role
- How can I add a new row in a separate database when someone registers via WordPress?
- Show current user posts only
- How to send a HTTP Post request using PHP Curl and WordPress
- One account with multiple logins
- REST API works in browser and via AJAX but fails via cURL
- cURL error 6 on news area, and also won’t auto update
- Show site content based on user role
- I installed WordPress locally now how do I login?
- Change homepage content if user is logged in – BuddyPress
- php return username of currently viewed author profile
- How to list users like an archive page 10 users on page and have navigations
- calling admin-ajax.php from admin-ajax.php
- Redirect to current user page upon link click
- is_user_logged_in returning nothing on custom page
- Use of antispambot with $curauth->email
- Generate a QR code when creating a new WordPress user
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Change wordpress’ database data using ajax – how to get current user id?
- Sort column in Users admin Tab
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Woocommerce display orders with products from specific categories to specific admins
- Check if user had autologin & if so, logout
- Get current user id in function php
- how can I call a function when time expire
- If user has clicked link add class and store using PHP/WordPress
- Restrict wordpress access to logged users only
- Store data from JavaScript object to custom table in user account
- How to change the value of a variable using input field?
- How do I track which user clicked my button?
- Contactform7: display results from CURL
- How do I send a POST request with params with WordPress REST API
- wp-login.php?redirect_to=https problem
- Query to show average # of months all accounts with specific role have been active
- wordpress more than one ajax request at the same time issue
- Editable Student file associated with basic User ID
- Adding users to another blog
- Changing WordPress author name in database
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Loop 1 user randomly
- Not logged in when using http
- add bootstrap modal after login in wordpress
- How to ‘remember’ a site member’s last visited page?
- Get author meta of all writers
- Let users register weight each day and save it in DB
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- WP query with variables gives no result for specific user
- How do I do so that people can register on my wordpress site?
- How to create custom user role without plugin?
- wp_login_url always redirects me to wp-admin
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID
- change div text and link for logged in users