Skip to main content
Skip table of contents

Authentication Management Service

This service includes two methods: getAuthenticationToken and logoutByToken

getAuthenticationToken that gets a token which is valid within one hour and can be used once for login to KeySurvey / Form.com application. This service is applicable for all user types (user, account admin, admin).

The following request is used to get the token:

CODE
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.v81.api.keysurvey.com">
   <soapenv:Header/>
   <soapenv:Body>
      <aut:getAuthenticationToken>
         <!--Optional:-->
         <login>APPLICATION_LOGIN_HERE</login>
         <password>APPLICATION_PASSWORD_HERE</password>
      </aut:getAuthenticationToken>
   </soapenv:Body>
</soapenv:Envelope>

The actual token will be received in the response:

CODE
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:getAuthenticationTokenResponse xmlns:ns2="http://authentication.v81.api.keysurvey.com" xmlns:ns3="http://v81.api.keysurvey.com">
         <return>55**1731**5118**51</return>
      </ns2:getAuthenticationTokenResponse>
   </S:Body>
</S:Envelope>

logoutByToken which should be used for transparent logout for logged in user. Please note, that this method is applicable for users logged in via the application token.

Given actual token will be deleted by the following request:

CODE
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://authentication.v81.api.keysurvey.com">
   <soapenv:Header/>
   <soapenv:Body>
      <aut:logoutByToken>
         <arg0>55**1731**5118**51</arg0>
      </aut:logoutByToken>
   </soapenv:Body>
</soapenv:Envelope>

with the response:

CODE
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:logoutByTokenResponse xmlns:ns2="http://authentication.v81.api.keysurvey.com" xmlns:ns3="http://v81.api.keysurvey.com"/>
   </S:Body>
</S:Envelope>

For more information, please review the API reference and WSDL:

Current version(v8.1)

AuthenticationManagementService API Reference

AuthenticationManagementService WSDL

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.