REST API connection failed after RSSO 9.1.04 integration agent upgrade

Version 26
    Share This:

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


    PRODUCT:

    Remedy AR System Server


    COMPONENT:

    AR System Server


    APPLIES TO:

    AR system version 9.1.04 and RSSO 9.1.04



    PROBLEM:

    Problem Scenario 1 : REST API connection failed with an error, HTTP 401 unauthorized, after RSSO 9.1.04 AR system integration agent was upgraded.
     
    Getting Error : Problem accessing /api/jwt/login. Reason:
    <pre> Unauthorized </pre>


    Problem Scenario 2 : There is another situation that REST API token generation failed with POST.
    The HTTP response code of POST is 200, which indicates that there is no issue in HTTP traffic.
    Following error is logged:   

    an error occurred, please contact your administrator

    Problem Scenario 3 : If customer try to connect via Postman at the URL https://<server>:8443/api/jwt/login , we receive a reply that something is redirecting via RSSO....

     
    Like below
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
        <head>
            <title>Redirecting to Remedy Single Sign-On</title>
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
            <script type="text/javascript">function submitForm() {    var rssoForm = document.getElementById('rssoForm');    if (window.location.hash) {        rssoForm.action += window.location.hash    }    rssoForm.submit();}window.onload = submitForm;</script>
        </head>
        <body>

     


    CAUSE:

    RSSO Agent in AR Server thinks this connection is from a web server and tries to redirect to RSSO login screen which should not happen as REST API is code based


    SOLUTION:


    To resolve this issue

       
    • Edit the ../ARSystem/conf/rsso-agent.properties
    •  
    • Append the following to the excluded-url-pattern= parameter 
      
      /api/.* 
    Example:  
       
    excluded-url-pattern=.*\\.xml|.*\\.gif|.*\\.css|.*\\.ico|/shared/config/.*|/WSDL/.*|/shared/error.jsp|/shared/timer/.*|/shared/login_commn.jsp|/shared/view_form.jsp|/shared/ar_url_encoder.jsp|/ThirdPartyJars/.*|/shared/logout.jsp|/shared/doc/.*|/shared/images/.*|/shared/login.jsp|/services/.*|/shared/file_not_found.jsp|/plugins/.*|/shared/wait.jsp|/servlet/GoatConfigServlet|/servlet/ConfigServlet|/shared/HTTPPost.class|/shared/FileUpload.jar|/BackChannel.*|/servlet/LicenseReleaseServlet.*|/api/.*
       
      

     


    Article Number:

    000361128


    Article Type:

    Solutions to a Product Problem



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