
For developers
You can authenticate against our authentication service by sending a specially crafted URL from your third party application. In order to access this service, you must have two things:
Briefly speaking there are two authentication steps you need to pass before you can start using all other REST services:
Keep reading to find more information about how to authenticate against our authentication service.
**This authentication setup is NOT applicable to the Iron Mountain Data Centers portal**
Initially you should log in to our authentication service as an anonymous user with a connection URL using method system.connect. The authentication service will send you back XML respond with generated for you anonymous session ID.
Here is example of connection URL:
https://demo.fontisinternational.com/services/rest?method=system.connect&nonce=eD24gpbc7u&domain_name=yourdomainname.com
&domain_time_stamp=1271162182&hash=3cf7755e7
cdc2b35afa2b40c145619d1bb5e80d86897c502ec4b9fe3fd0e8827
Once you get response from our Authentication Service it will look like this:
success
gcjmr7p7ugv15p24qla2c7ump2
0
84.201.227.138
anonymous user
0
All you need is to grab
error
error
Invalid API key.
or:
error
error
Token has expired.
or:
error
error
Token has been used previously for a request. Re-try with another nonce key.
Once you have connected as an anonymous user and have received an anonymous session id, you will need to login with a valid Policy Center service account using method user.login. Once authenticated, the service will send you back registered user session id.
Here is example of connection URL for user login:
https://demo.fontisinternational.com/services/rest?method=system.connect&nonce=eD24gpbc7u&domain_name=yourdomainname.com
&domain_time_stamp=1271162182&hash=3cf7755e7cdc2b35afa2b40c145619d1bb5e80d86897c502ec4b9fe3fd0e8827
Once you get response from our Authentication Service it will look like this:
success
t3hfgib6k2nnhbkgt4keruos26
15
serviceuser
dd382052ffc8d14aaec24adedafc5f3f
serviceuser@fontisinternational.com
0
0
0
1353673334
1359024904
1359028253
1
0
serviceuser@fontisinternational.com
a:1:{s:13:"form_build_id";s:37:"form-bfb4f6519e6f5c3162078e928ad3737c";}
Europe/London
0
form-bfb4f6519e6f5c3162078e928ad3737c
authenticated user
service user
Again as for STEP I all you need is to grab value (indicated in bold). This is registered user session id, once you have it you will never need to build HASH anymore. Just use HTTP Cookies to submit the session id for all further REST server requests. Here is also additional list of XML responses you could get in case of any errors:
error
error
Invalid sessid.
or:
error
Wrong username or password.
or:
error
error
Access denied.
If you have any kind of difficulties with authenticating against our authentication service please contact our support. All you need to do is log-in to your Policy Center application instance via web browser and click on the help link in the top right corner of the screen.