-
In the Azure portal, open the new API page and copy the application (client) ID.
-
Open the Smart Completions web.config file.
-
In the services node:
-
Set the id parameter to the application (client) ID.
-
Remove the values for the secret and instance parameters, but do not remove the parameters.
-
Add the audience parameter and set its value to the application (client) ID value.
<intergraph.webApi>
<services baseUri="http://localhost:53427/">
<service prefix="smartapi/V1" id="c97ccb8b-2695-434e-8b4b-f7db94986f21"
secret="" instance="" audience="20f7717c-4300-4642-82ff-147aae276c0f"/></services>
-
-
In the Oauth issuer node, set requiredScopes to the application (client) ID value. For example:
<security>
<oauth issuer="https://scclient.acme.com/sam/oauth/"
requiredScopes="c97ccb8b-2695-434e-8b4b-f7db94986f21"/>
<cors allowCredentials="false" preflightMaxAge="600" exposedHeaders=""
allowedHeaders="*" allowedMethods="*" allowedOrigins="*"/>
</security>
-
Return to the Azure portal, and click Endpoints on the API page.
-
Copy the first part of the OAuth authorization endpoint value, up to the oauth2 portion of the URL. For example:
-
In the web.config file, set oauth issuer to the portion of the OAuth authorization endpoint value copied from the Azure portal.