How to authenticate ?
There are several prerequisites for authenticating with the REST protocol :
- You must have a technical webservice user.
- You must have a valid certificate loaded on SPS. See documentation
- You must associate the certificate with the technical user. See documentation
Once all the prerequisites have been met, when executing a REST request, you need to send your certificate in the request and add the technical user’s login in the technical-user
header.
Common authentication errors
- If you do not receive any response from SPS, it is likely that you did not send any certificate when executing the REST request.
- If you receive an http 401 code, then authentication has failed. Depending on the case, an error message is returned to help you understand why.