Generate Bearer Token

  1. Open Postman and create a brand-new collection named "OAuthRESTAPIKM"
  2. Once the collection is created, expand it to show an empty request. Click on Add a Request to add a request and it will create a GET New Request by default.
  3. In this GET request we will use a data call to the Accounts Business Component in the Siebel application. It can be in the format of:

    https://AIHostname:AIHTTPSPort/siebel/v1.0/data/Account/Account

    Note: For the Bearer Token or Access Token generation, we must use POST method.
  4. In the Auth section of the request, select Type as "OAuth 2.0", Add Authorization Data to "Request Headers" and provide the below values for the other parameters.
    • Access Token: Available Tokens (defaults)
    • Header Prefix: Bearer
    • Token Name: Any meaningful Name
    • Grant Type: Client Credentials
    • Access Token URL: https://IDCSHostName/oauth2/v1/token
    • Client ID: Copy clientID from the No Introspect application
    • Client Secret: Copy Client secret from the No Introspect application
    • Scope: https://AIHostname:AIHTTPSPort/siebel/v1.0/data
    • Client Authentication: Send client credentials in body
  5. In the header section, make sure the values are set for Content-Type, Connection etc.
    Parameter Value
    Accept */*
    Accept-Encoding gzip,deflate,br
    Connection keep-alive
    Content-Type Application/scim-json
  6. Click on the Get New Access Token button. Once the button is clicked, you will get a message stating "Authentication Successful”, and you will be asked to proceed further.
  7. Click on "Use Token" from the pop-up window so that this token is used and replaced for the token in the Authorization for running Get Data later. Also, copy the Access Token and save it as it is required as input for the Introspection URL check.