How to authenticate with RSSO and ASSO in REST API

Version 1
    Share:|

    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:

    Both webservices and REST Api can authenticate is authString is used.



    QUESTION:

    Authentricataion string cookie is provided by RSSO/ASSO
    With that cookie Authentication on Rest API can be completed

    First, Log in to RSSO  
    Once you get authenticated in RSSO, a cookie would be in the browser
    usually labeled as sso_### 
    with value _8c06a3e4-3716-42af-b038-c82fc145fc22 or smilar

    Next, Use this information to create a JWT token or execute Webservice calls

    Example Curl script

    $ curl -X POST http://arserver:8008/api/jwt/login -H 'cache-control: no-cache' -H 'content-type: application/x-www-form-urlencoded' --data "username=Demo&authString=_9f5d8599-0ef0-4d09-a99a-5dc1ee55c2bd"

    This returns the JWT Token:
    eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJTRXRxTEs3elIybHdpR2txT1RKU2VkWUw3RTdaVkZReTdPOEdZcG56ZDhkTHVHYzJPOUVDWnB2bWpYRCtFYWN1NXBteXpyQVU4S3h3aE1mend3Q0hqWWtuZWhaTittekhjSkMrdmhmOHhRT0JKRnBxcVRjTzRBPT0iLCJuYmYiOjE1MTI1OTQyNjQsImlzcyI6ImNsbS1hdXMtMDE5MTIwLmJtYy5jb20iLCJleHAiOjE1MTI1OTc5ODQsIl9jYWNoZUlkIjoxMTYxMDUsImlhdCI6MTUxMjU5NDM4NCwianRpIjoiSURHQUE1VjBHRU5QTEFQQUtGME9PWk5SNU9HWlZMIn0.GUPd78BzsyQ0NWKwP446_C5UBKcKNr6rpDaKneHhxlU

    In this example, notice that  --data "username=Demo&authString=_9f5d8599-0ef0-4d09-a99a-5dc1ee55c2bd" is used.  This provides the username of Demo and the  authString information.    As a result, the JWT is created and returned


     


    ANSWER:

     


    Article Number:

    000146081


    Article Type:

    FAQ/Procedural



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