Skip to main content
Solved

Magento 2 integration on a password protected staging site

  • May 21, 2024
  • 1 reply
  • 74 views

Forum|alt.badge.img+1

Hi,

I have my staging site under password protection. When I try to activate OAuth from Magento 2, I get the error “Klaviyo is unable to connect to Magento Server for OAuth Handshake. Please ensure that both /oauth/token/request and /oauth/token/access are accessible.

Of course the mentioned urls are not accessible because of password protection. How can I pass the username and password for this urls so it is accessible for Klaviyo without removing the password protection from my staging site.

I have set “Allow OAuth Access Tokens to be used as standalone Bearer tokens ” to “yes” under store->configuration->Service->OAuth->Consumer settings

 

I am using a test account on Klaviyo to test email templates.

Best answer by Brian Turcotte

Hi @SKK!

At this time, you will need to remove the password protection in order to active OAuth as the nature of OAuth will require access. If you temporarily remove the password protection, and then try, it should work.

 

Best,

Brian

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • May 30, 2024

Hi @SKK!

At this time, you will need to remove the password protection in order to active OAuth as the nature of OAuth will require access. If you temporarily remove the password protection, and then try, it should work.

 

Best,

Brian