IBM Support

REST APIs authentication mechanism when servlet.authstyle is set to STANDARD

Question & Answer


Question

How to invoke a REST services when servlet.authstyle is set to STANDARD in IBM Sterling Order Management?

Cause

You are unable to authenticate REST APIs.

Answer

  1. Invoke the login API through REST using the following URL:
    http://<ip-address>:<port>//smcfs/restapi/invoke/login

    Method: POST
    Media Type: application/json


  2. Input to the API will be
    {                                                                      
    "LoginID" : "admin",                                                  
    "Password" : "password"                                                
    }


    The following result will be obtained:
    "UserGroupID": "ItemAdministratorGroup",                              
    "UserToken":                                                            
    "mXffVPKgo9HUoftxg0HsyX3uQQP6o4LmAG3HHnfiVTrtQvx3dyYUX8n6793wggmU15",   "UserName": "Administrator",                                            


  3. Use the UserToken generated in the login call in subsequent calls.
    For example
    To invoke the server (GET) API, the URL should be:
    http://localhost:8084/smcfs/restapi/server?_loginid=admin&_token=mXffVPKgo9HUoftxg0HsyX3uQQP6o4LmAG3HHnfiVTrtQvx3dyYUX8n6793wggmU15

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"9.5;9.4","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg22004012