Control-M Application Integrator REST type jobs using OAuth2 authentication fail to receive an OAuth token and subsequent requests receive a 401 unauthorized response.

Version 5
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M Application Integrator


    COMPONENT:

    Control-M Application Integrator


    APPLIES TO:

    Control-M Application Integrator - all supported versions



    PROBLEM:

    Control-M Application Integrator REST type jobs using OAuth2 authentication fails to receive an OAuth token and, subsequent request receive a 401 unauthorized response.


    CAUSE:

    CAR00181168 - Control-M Application Integrator job fails when Job is configured with OAuth2 authentication and required content-type is different then "text/javascript"


    SOLUTION:

    Until CAR00181168 is released, the following steps can be used:

       
    1. Disable Application Integrator's builtin OAuth integration
    2.  
    3. Manually define the proper OAuth request to retrieve an authentication token in the pre-execution step, and store the token value to a run time parameter     
           
      • Consult the 3rd party application vendor documentation for the proper setting for OAuth request
      •    
      • Ensure any parameters passed via the URL's query string is properly URL Encoded.  For example, client_id=A+B should be client_id=A%2BB due to the + being mistaken for a space and converted to %20.
      •   
    4.  
    5. Use the run time parameter containing the token in the authentication header in subsequent requests that require authentication.

     


    Article Number:

    000152808


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles