Hey All,
So I'm looking for a little help with configuring OAuth between my IPS (on the sub domain) and wordpress.
Essentially at my top level site (wordpress) I only want users to login using their IPS account on the community. sub domain. I've followed the steps to a tee as provided by the official IPS KB with setting up OAuth and using the IPS as the OAuth Server.
However whenever I attempt to login I get the following error. Invalid Redirection URI - Error Code 3S361/1
I'm perplexed by the error as the call back URI is provided by the OAuth login as part of setup and I've checked (and double checked) that it's correct.
I'm just wondering if anyone else has had issues with OAuth when dealing with sub-domains?
So I've figured this out...
Essentially there's a few thing's at play. In order to get the redirect to function I needed to drop the www. component from wordpress Settings > General > WP Address + Site Address.
From there update IPS OAuth settings to include ONLY THE TDL example being "https://websitename.com". IPS quietly add's the /oauthcallback component of the URI automatically AFTER you hit save... in other words without telling you.
This fixed the issue and OAuth is now working. If you're having the same issue I hope this helps you.
RESOLUTION:
Enter TLD website, login to WP Admin.
Go To: Settings > General and remove the "www." component from WordPress Address + Site Address.
Go to Sub Domain IPS site Admin CP.
Go To System > REST & OAuth > Select WordPress Item Drop Down and then Select "Edit".
Clear "Wordpress Site URL" and enter your TLD ONLY eg, https://sitename.com/
Select Save, IPS automatically appends "/oauthcallback" to the end of the Wordpress Site URL after you save. Thus if you include it it will double up and cause an error.
I hope this helps you if you've had the same issue.
@ Mod / Admin, plz close this thread.