Configuring the location of the Discovery Service in the Session-enabled .NET website

Specify the location of the Discovery Service, and some other properties, in the Web.config file.

Procedure

  1. Open the Web.config file of this .NET web application for editing.
  2. Ensure that the file either does not perform client-side caching at all, or uses a caching policy with a very short expiration time.
  3. Ensure that the file contains the following fragment:
    <add key="discovery-service-uri" value="URI"/>
    <add key="oauth-enabled" value="true"/>
    <add key="oauth-client-id" value="USERNAME"/>
    <add key="oauth-client-secret" value="PASSWORD"/>
    where:
    • URI is the URL of the Discovery Endpoint.
    • USERNAME and PASSWORD are valid Token Service credentials that grant the client access to the Discovery Endpoint. You can find valid credentials in the Ambient Data Framework configuration file, cd_ambient_conf.xml, of the Discovery Service. Note that the value of ClientSecret must be an encrypted value.
  4. Save and close Web.config.