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

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 does not contain the following (remove these elements if you see them):
    <add key="service-caching" value="BOOLEANVALUE"/>
    <add key="service-caching-expiration" value="NUMBERVALUE" />

    where BOOLEANVALUE is either true or false, and NUMBERVALUE is any integer.

  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.