Gravatar for nbernier@gmail.com

Question by Nicolas Bernier, Jan 23, 2015 2:08 PM

rest api returns 403

Hi! I changed my architecture and re-installed my environment. Everything seems to be allright but my rest api call, the rest api call from the sitecore server returns 403. Looking at the network trace from the browser, i can see that the call to [sitecore]/coveo/rest/ return 403. I can't find where to look. Can you guide me please?

Thanks!

2 Replies
Gravatar for slangevin@coveo.com

Answer by Simon, Oct 20, 2015 12:04 PM

Support confirmed with the user that the issue was the allow impersonation node in the config.yml. To solve the issue: https://developers.coveo.com/pages/releaseview.action;jsessionid=2424DD89D0C014EEC519E210B8EF98FB?pageId=26443919

Gravatar for lbergeron@coveo.com

Answer by Luc Bergeron, Jan 23, 2015 2:15 PM

I would check the Search API config.yml file. Make sure the application secret match with the value set in the Coveo.SearchProvider.Rest.config in Sitecore.

Also, still in the config.yml file, make sure you have "allowImpersonate: true" for the application that corresponds to Sitecore.

See this page for details regarding those configuration files: https://developers.coveo.com/display/SC201501/Understanding+the+REST+Endpoint+Configuration+Files

Hope this helps

Ask a question