localhost8080 rest search api -- how to configure secret key?
I have a c# program that is making calls to my local host rest search api. It was working before we tried to set up authentication.
In my config.yml I have included:
tokens: sharedKey: a0534332f0934064a7124a79a97c9227
at the bottom. I have tried to add information to the applications section below but i have to delete it in order to get my service to restart and actually run
In the Coveo Coveo.SearchProvider.Rest.conig I changed the Application Secret to:
so now when I call this url i dont get back my JSON anymore:
I get an error:
"statusCode" : 403, "message" : "Invalid token", "type" : "InvalidTokenException"
the c# for my program is getting the data back from the rest search using a HttpRequest. Any help would be appreciated! Thanks!
<ApplicationSecret> element value must match a
config.yml application secret instead of the sharedKey token. In your case, your
config.yml file should contain the following in order to work from Sitecore:
applications: - name: Sample Application secret: a0534332f0934064a7124a79a97c9227 allowImpersonate: true
For your C# program, I think the problem is you included dashes in your access_token URL query string attribute value but no dashes in the sharedKey token in the