Get an access token using the Authenticate using the Client Credentials grant type - Intergraph Smart Completions - Intergraph Smart Completions Update 4 - Customization & Programming

Intergraph Smart Completions Smart API Programmer's Getting Started Guide

Language
English
Product
Intergraph Smart Completions
Search by Category
Customization & Programming
Smart Completions Version
6.0.4

This example shows how to get an access token for a Postman client application when using the Client Credentials grant type.

Required information

  • The information supplied by the identity provider upon registering Power BI as a client application:

    • Token URL

    • Client ID

    • Client Secret (if required by your identity provider)

    • Scope

    • For the Smart Cloud environment, this information is supplied by the Smart Cloud support team when they respond to the request to register Postman as a client.

    • For other environments, you can get the Token URL from the configuration endpoint for your identity provider:

      <idp_hostname>/<idp_baseurl>/.well-known/openid-configuration

  • Smart Completions Smart API Base URL

Get the access token

  1. Create a Postman collection for accessing the web API and define a variable to hold the access token for the collection.

  2. Go to the Authorization section.

    Postman Client Credentials - Get Token 1

  3. For Type, select OAuth 2.0.

  4. For Token Name, enter the name of the access token variable.

  5. For Grant Type, select Client Credentials.

  6. For Client Authentication, select Send client credentials in body.

  7. For the remaining fields, enter the information supplied by your identity provider.

  8. Click Get New Access Token.

  9. If required, sign in using your Smart Completions credentials.

    If the request succeeds, you receive an access token.

    Postman PKCE Authentication - Get Token 2

Copy the access token from the response

  1. Copy the access token from the response.

  2. Paste the access token into the CURRENT VALUE column for the access token variable you defined.

    Postman PKCE Authentication - Get Token 3

  3. Now, you can use the access token to request a resource.