Possible REST API authentication issue with switched users
-
Subject: Possible REST API authentication issue with switched users
Hi,
I’m encountering a compatibility issue when using the User Switching plugin together with AffiliateWP’s Affiliate Portal.
The behavior is the following:
– When logging in normally as the affiliate user, the Affiliate Portal works correctly.
– When switching to the same user using User Switching, the portal loads but the internal data (statistics, URLs, graphs) fail to load.
In the browser console I see REST API errors such as:
/wp-json/affwp/v2/portal/settings
returning:
401 / rest_forbidden
The message returned is:
"Non hai i permessi per farlo."
This suggests the switched session may not be passing authentication correctly to protected REST endpoints.
Interestingly, disabling another plugin (Jeg Elementor Kit) seems to avoid the issue, but since the portal works with a real login, it appears more related to switched-user session handling rather than the portal itself.
Could you please confirm whether User Switching fully supports REST API authentication for switched users, particularly for endpoints that require user capabilities?
If there are known limitations or recommended workarounds, I would be happy to test them.
Thank you for your work on the plugin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.