Tim Schmidt Posted November 4, 2018 Posted November 4, 2018 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.
bfarber Posted November 5, 2018 Posted November 5, 2018 The redirect URI that was supplied is not correct. You will need to change it to the correct value.
Tim Schmidt Posted November 8, 2018 Author Posted November 8, 2018 I took the information from the admincp, where do i find the right ones? :x
bfarber Posted November 9, 2018 Posted November 9, 2018 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.
Tim Schmidt Posted November 9, 2018 Author Posted November 9, 2018 I made those screenshot, i think they match? 😕 Or is the www. a problem?
Optic14 Posted November 10, 2018 Posted November 10, 2018 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/
Tim Schmidt Posted November 11, 2018 Author Posted November 11, 2018 I can't change the redirect URL in wordpress :/.
Stuart Silvester Posted November 11, 2018 Posted November 11, 2018 On 11/9/2018 at 7:18 PM, Tim Schmidt said: 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.
Tim Schmidt Posted November 17, 2018 Author Posted November 17, 2018 Sorry for the late reply, was in london =). When i typ the wordpress url, invision changes it to .../oauthcallback
Tim Schmidt Posted December 7, 2018 Author Posted December 7, 2018 On 11/17/2018 at 8:47 PM, Tim Schmidt said: 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 😞
bfarber Posted December 10, 2018 Posted December 10, 2018 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.
Tim Schmidt Posted January 18, 2019 Author Posted January 18, 2019 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
Neville1 Posted January 20, 2019 Posted January 20, 2019 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
Tim Schmidt Posted January 21, 2019 Author Posted January 21, 2019 10 hours ago, Neville1 said: 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.
Nathan Explosion Posted January 21, 2019 Posted January 21, 2019 11 hours ago, Neville1 said: 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/
Tim Schmidt Posted January 22, 2019 Author Posted January 22, 2019 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
Tim Schmidt Posted January 23, 2019 Author Posted January 23, 2019 Hab den Client Secret Key neugeneriert, jetzt geht es :).
Daniel F Posted January 23, 2019 Posted January 23, 2019 19 minutes ago, Tim Schmidt said: Hab den Client Secret Key neugeneriert, jetzt geht es :). Wrong language?:D
Tim Schmidt Posted January 23, 2019 Author Posted January 23, 2019 5 hours ago, Daniel F said: Wrong language?:D Oh yes sorry, was too happy x). I regenerated the client seret key and now it s working :D.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.