10

Getting error while browsing the discovery service url although service is already installed and status is started

http://localhost:8082/discovery.svc/

{"error":"invalid_grant"}

7

I think you'd need to change the security configuration to allow access to the discovery service.

Change Security OAuthEnabled to false and Rules Enabled to false in cd_ambient_conf.xml in the discovery service's config folder, and then restart the service.

11

That error can be considered a "good error"; if you get that error in your browser, it implies the Discovery Service is up-and-running and OAuth is enabled (so you will get such error unless you provide a valid bearer token in your request, which a browser will never do).

If you want to browse the contents of your Discovery Service, you can disable security (as described by Sabarish) or you could obtain a bearer token from the token service and send a request (e.g. using Postman or Fiddler) including the bearer token (which will expire shortly after you have requested it). Security is a necessary evil. :-)

  • 1
    Just to note, bearer token expires in every 5 min and that can be configured as well. – Vikas Kumar Jan 19 '17 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.