Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 4, 20186 yr Hi, i installed a new forum and a website based on wordpress. Now i m trying to connect both. I want to use the forum as the OAuth Server and the Wordpress site as client. I used the offical guide and completed all of the nessesary task (i hope i did ;D). Well it seems that i missed something. When i want to login into the Wordpress site or test the OAuth connection following error shows up.
November 5, 20186 yr The redirect URI that was supplied is not correct. You will need to change it to the correct value.
November 8, 20186 yr Author I took the information from the admincp, where do i find the right ones? :x
November 9, 20186 yr If Wordpress is the client, you need to enter the Wordpress redirect URI into the AdminCP. I'm unclear when you say you took the information from the AdminCP if you are referring to the Wordpress control panel or not, but based on your description of what you are trying to set up, you need to create an OAuth client in the AdminCP (under Rest & OAuth), and when prompted for the redirect URI you need to enter the correct one for your Wordpress installation. Be sure you match http and https, and trailing slash or no trailing slash. The URL must match exactly.
November 9, 20186 yr Author I made those screenshot, i think they match? 😕 Or is the www. a problem?
November 10, 20186 yr I think you've got the wrong callback URL, and it is in the wrong spot. The IPS callback URL needs to be https://www.autumn-leaf.de/forum/oauth/callback/ and this needs to be in the WordPress oAuth side, NOT the IPS side WordPress Site URL should just be https://www.autumn-leaf.de/
November 11, 20186 yr I made those screenshot, i think they match? 😕 Or is the www. a problem? The Invision Community form is asking for the WordPress Site URL, not the callback URL. Try changing that and it should work.
November 17, 20186 yr Author Sorry for the late reply, was in london =). When i typ the wordpress url, invision changes it to .../oauthcallback
December 7, 20186 yr Author Sorry for the late reply, was in london =). When i typ the wordpress url, invision changes it to .../oauthcallback Can i push it? Still not working 😞
December 10, 20186 yr If you are having trouble using built in functionality of the software, you should submit a ticket so that our technical support team can take a look and provide assistance.
January 18, 20196 yr Author Thank you bfarber, i created a support ticket. I manually changed the redirect url in the mysql database and it works, more or less :D. Now i get following error, when i try to login. {"error":"invalid_client"}invalid_client
January 20, 20196 yr I too had his problem. It's definitely a simple bugfix on the IPS side. I'll demonstrate: If you enter your Wordpress site URL as shown, then click Save..... .....it will automatically add /oauthcallback to it, as shown when you re-open the settings: ....in fact if you save and close.....and save and close again.....it will have added FOUR /oauthcallback trailing slashes! Opened the database to check, and sure enough it was a wonky entry: Had to manually change it, and then everything worked! However you have to be careful not to open up those OAuth client settings, otherwise it messes everything up again. Hey @bfarber Hopefully the fine folks at IPS can fix this little bug! *UPDATE*: @Tim Schmidt I get the same error after: {"error":"invalid_client"}invalid_client
January 21, 20196 yr Author I too had his problem. It's definitely a simple bugfix on the IPS side. I'll demonstrate: If you enter your Wordpress site URL as shown, then click Save..... .....it will automatically add /oauthcallback to it, as shown when you re-open the settings: ....in fact if you save and close.....and save and close again.....it will have added FOUR /oauthcallback trailing slashes! Opened the database to check, and sure enough it was a wonky entry: Had to manually change it, and then everything worked! However you have to be careful not to open up those OAuth client settings, otherwise it messes everything up again. Hey @bfarber Hopefully the fine folks at IPS can fix this little bug! *UPDATE*: @Tim Schmidt I get the same error after: {"error":"invalid_client"}invalid_client Thank you, yes i did the change manually in the database :). When you login 3 times with the error: {"error":"invalid_client"}invalid_client You ll get banned :D.
January 21, 20196 yr I too had his problem. It's definitely a simple bugfix on the IPS side. I'll demonstrate: Log a ticket so that it gets seen by support/development, or log a bug when 4.4 goes in to beta: https://invisioncommunity.com/4bugtrack/alpha-and-beta-reports/
January 22, 20196 yr Author They have a ticket with the oauth redirect url, the next problem is still unsolved and won't be solved with the basic support 😞 {"error":"invalid_client"}invalid_client
January 23, 20196 yr Community Expert Hab den Client Secret Key neugeneriert, jetzt geht es :). Wrong language?:D
January 23, 20196 yr Author Wrong language?:D Oh yes sorry, was too happy x). I regenerated the client seret key and now it s working :D.
Archived
This topic is now archived and is closed to further replies.