2 Replies Latest reply on Aug 18, 2016 9:42 AM by dmehta RSS
    dmehta Newbie

    REST call PUT Request to Enable SSO Authenticator

    Hi,

     

    I am trying to enable SSO Authenticator using the Ruby REST API.  For now we do it manually from GUI by enabling a check-box.

    Here is the REST Call which I parsed it from the brower developer tools::

     

    http://$host/Thingworx/Authenticators/SSOAuthenticator?reason=header%20%3A%20enabled%20%3A%20updated%0A


    And it pass the payload in the json format.

    For the Similar Call, I tried executing the below curl request and I got the below message.


    curl -v -u $username:$password 'http://$host/Thingworx/Authenticators/SSOAuthenticator' -H "Content-Type: application/json" -H "Accept: application/json" -X PUT --data "@/tmp/sso.json"


    and


    curl -v -u $username:$password 'http://$host/Thingworx/Authenticators/SSOAuthenticator?reason=header' -H "Content-Type: application/json" -H "Accept: application/json" -X PUT --data "@/tmp/sso.json"


    #########Response#############


    >

    < HTTP/1.1 100 Continue

    < HTTP/1.1 409 Conflict

    * Server Apache-Coyote/1.1 is not blacklisted

    < Server: Apache-Coyote/1.1

    < Set-Cookie: JSESSIONID=1BFD99FF930069975DC370B9180731B3; Path=/Thingworx/; HttpOnly

    < Expires: 0

    < Cache-Control: no-store, no-cache

    < Cache-Control: post-check=0, pre-check=0

    < Pragma: no-cache

    < Content-Type: application/json;charset=UTF-8

    < Transfer-Encoding: chunked

    < Date: Tue, 28 Jun 2016 19:30:50 GMT

    < Connection: close

    <

    * Closing connection 0

    Unable To Update Entity

     

    Please let me know what am I missing with the call.

     

    Thank You,

    Dushyant