Configure the HxGN SDx application site - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10
  1. Navigate to the HxGN SDx application site virtual directory web.config file. For example:

    C:\SDx Server Files\Web_Sites\SDXserver\web.config

  2. Locate the intergraph.webApi > OAuth security element.

  3. Edit the issuer value to match the URL of the Smart API Manager using the oauth suffix. For example:

    <security>

    <oauth issuer="https://[SAMHostServer].[Domain]/sam/oauth" requiredScopes="ingr.api"/>

    <cors allowedOrigins="*" allowedMethods="*"allowedHeaders="*" exposedHeaders="" allowCredentials="false" preflightMaxAge="600"/>

    </security>

  4. Locate the Intergraph.webApi >services configuration element.

  5. Update the ID element with the Service ID and Secret values generated creating the Smart API instance in Smart API Manager. For example:

    <services baseUri="">

    <service prefix="api" id="[Service Id]" secret="[Secret] instance=""/>

    <services>

  6. Click Save.

  7. Recycle the server application pools.

If your site will not load and you get a Configuration file is not well-formed XML error, you need to get a properly-escaped secret that can be used in an XML file. This is because the secret generated may not work with the web.config file. For more information, see http://www.freeformatter.com/xml-escape.html.

SHARED Tip You can also configure the site using the Server Manager command line. The following example demonstrates how to configure the settings shown in the examples above:

SDxServerManager.exe /update /sn:SDx /oauthissuerurl:https://[SAMHostServer].[Domain]/sam/oauth /applicationid:[Service Id] /allowcredentials:false /secret:[Secret]