000033403 - How to test authentication to Authentication Manager Integration Service (AMIS) using curl?

Document created by RSA Customer Support Employee on Jan 11, 2017Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000033403
Applies ToRSA Product Set:  SecurID
RSA Product/Service Type: Authentication Manager Prime/Authentication Manager Integration Service (AMIS)
IssueAuthentication Manager Integration Service (AMIS) accepts the authentication request and forwards the request to RSA Authentication manager. The authentication can be tested using Authentication Harness only on the AMIS itself. but there is no easy way to test the authentication from Linux machines. 
ResolutionThe test authentication to AMIS from any Linux machine can be done similar to using the Authentication Harness from the AMIS server by running the below command:
# curl  -X POST  -H "Content-Type: application/xml"  -d '<Authentication type="token"><token userID="<USER_ID>" passcode="<PASSCODE>" /></Authentication>' "http://<AMIS_SERVER_IP>:8080/auth/authn"
e.g.:
# curl  -X POST  -H "Content-Type: application/xml"  -d '<Authentication type="token"><token userID="tester" passcode="1234" /></Authentication>' "http://192.168.2.84:8080/auth/authn"

The response should be in xml like the blow example:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<authenticationResult>
<authenticated>true</authenticated>
<authenticationToken>46423633</authenticationToken>
<code>0</code>
<failed>false</failed>
<hasQuestions>false</hasQuestions>
<message>ACCESS_OK</message>
<publicID>tester/token/ffaff3f9-2a6b-43d0-bf94-b943af006fe9</publicID>
</authenticationResult>

See also Collecting troubleshooting logs for Authentication Manager Prime/Authentication Manager Integration Service (AMIS)

Attachments

    Outcomes