cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth Code Example in Magento Docs doesn't work

OAuth Code Example in Magento Docs doesn't work

Hi, I've been having problems with a 3rd party trying connect to Magento 2.3.5 so I tried 'OAuth token exchange example' from this page in Magento documentation: https://devdocs.magento.com/guides/v2.4/get-started/authentication/gs-authentication-oauth.html

 

But I get:

 

PHP Fatal error: Uncaught Exception: Consumer keys received on different requests do not match. in /home/subb2604/public_html/checklogin.php:14

Does anyone know what the problem is and does anyone know if these example scripts work? They are in the official documentation!

 

Thanks, any advice appreciated.

3 REPLIES 3

Re: OAuth Code Example in Magento Docs doesn't work

Hi @traknet 

Kindly refer below link for your issue:
https://gist.github.com/paliarush/4c2bfa81ebef57305ba4

If issue resolve, please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: OAuth Code Example in Magento Docs doesn't work

@traknet 

 

Try to configure with this documentation help :

https://www.mageplaza.com/devdocs/token-oauth-session-authentication-magento-2.html

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: OAuth Code Example in Magento Docs doesn't work

Hi, thanks for the replies but unfortunately they did not help:

 

@Bhanu Periwal- The link you provide show someone else report the same error as me but there is no solution there.

 

@gaurav_harsh1- The code and instructions on your link are exactly the same as in my link above so this doesn't help me.