Maximo

Maximo-ICON.png

Maximo

Learn how to increase the operational efficiency of the assets you manage, and improve overall equipment effectiveness by using IoT data and AI.

Maximo-ICON.png

TRIRIGA

Reduce the operational costs of the facilities you manage, and create more engaging occupant experiences through the application of IoT data and AI.

Maximo-ICON.png

Engineering

Learn how IoT data and AI are being applied to transform the end-to-end engineering lifecycle.

Expand all | Collapse all

REST request - SSO enabled authentication

  • 1.  REST request - SSO enabled authentication

    Posted Mon July 27, 2020 09:58 AM
    Hi All,

    We are trying to access https://hostname/maxrest/os/mxperson?personid='PERSONID'and _lid=USERNAME&_lpwd=PASSWORD
    The environment is using ADFS authentication.When we test the API using client ,we are getting the below error:

    function LoginErrors(){this.userNameFormatError = 'Enter your user ID in the format \u0026quot;domain\\user\u0026quot; or \u0026quot;user@domain\u0026quot;.'; this.passwordEmpty = 'Enter your password.'; this.passwordTooLong = 'Password is too long (\u0026gt; 128 characters).';}; var maxPasswordLength = 128;
    //]]&gt;</script>

    Tried passing the parameters using domain also.But still getting the same error .May I know if maxrest api supports SSO/LDAP authentication.
    If it supports ,what should be the format or any additional parameters required

    Thanks,
    Sreekala R



    ------------------------------
    Sreekala R
    ------------------------------


  • 2.  RE: REST request - SSO enabled authentication

    Posted Mon July 27, 2020 10:36 AM
    Hi ,

    We need to use  https://hostname/maxrest/os/mxperson?personid='PERSONID'&Authorization:Basic[base64encodedusername:password]
    and it started working

    Thanks

    ------------------------------
    Sreekala R
    ------------------------------



  • 3.  RE: REST request - SSO enabled authentication

    Posted Tue July 28, 2020 08:44 AM
    In maximo-x (work centers) you can assign an api key to a user and then use it in REST call parameters.
    headers = { 'Accept': "application/json", Content-Type': "application/json"}
    params = { 'apikey':apikey }
    https://www.ibm.com/support/knowledgecenter/SSANHD_7.6.1.2/com.ibm.mif.doc/gp_intfrmwk/c_api_keys_comp.html

    ------------------------------
    Chris Schulz
    ------------------------------



  • 4.  RE: REST request - SSO enabled authentication

    Posted Wed July 29, 2020 02:24 AM
    Edited by Sreekala R Wed July 29, 2020 02:25 AM
    Hi Chris,

    Appreciate your help.I am using old gen maxrest api ,when I used url where SSO is not enabled (eg : MIF ) I was able to get the results 

    https://hostname/maxrest_mif/os/mxperson?personid='PERSONID'&_lid-USERNAME&_lpwd=PASSWORD

    Moreover we are using Maximo 7608 .I think api keys can be used in versions Maximo 7609 and later

    Thanks,
    Sreekala R


    ------------------------------
    Sreekala R
    ------------------------------