OAuth Error when trying to log in to Marketplace from Liferay DXP
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- Trying to log in to Marketplace from Liferay DXP (Control Panel > Marketplace > Purchased or Store)
- Getting the following OAuth Exception:
ERROR [http-nio-8080-exec-6][PortletServlet:118] Unable to process portlet com_liferay_marketplace_store_web_portlet_MarketplacePurchasedPortlet: org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'oauth_problem=timestamp_refused&oauth_acceptable_timestamps=1688902758-1688903358'
javax.portlet.PortletException: org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'oauth_problem=timestamp_refused&oauth_acceptable_timestamps=1688902758-1688903358'
at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:200) ~[portal-kernel.jar:?]
Resolution
- The time zone must be configured to GMT at the JVM level.
- Make sure that the server time is accurate. If discrepancy from the accurate time is greater than 2 minutes, it can also result in this error.
Did this article resolve your issue ?