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:?]
Environment
- Liferay DXP 7.0+
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.