Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:2.1:servertoserver [2019/06/14 23:41]
cmaudoux [Handling server webservice calls]
documentation:2.1:servertoserver [2019/10/13 15:51]
cmaudoux [Webapp1 handler configuration]
Line 17: Line 17:
 insert a header named **X-Llng-Token** filled with this value: insert a header named **X-Llng-Token** filled with this value:
 <file perl> <file perl>
-token( $_session_id,​ '​webapp2.example.com',​ '​webapp3.example.com',​ '​serviceHeader1=webapp1.example.com', ​'testHeader=$uid' ​)+token( $_session_id,​ '​webapp2.example.com',​ '​webapp3.example.com',​ '​serviceHeader1=webapp1.example.com', ​"testHeader=$uid" ​)
 </​file>​ </​file>​
  
 WebApp1 can read this header and use it in its requests by setting the ''​X-Llng-Token''​ header. The token is built by using the session ID and authorized virtualhosts list. By default, the Service Token is only available during 30 seconds and for specified virtualhosts. The token can be use to send service headers to webapp2 like origin host by example. WebApp1 can read this header and use it in its requests by setting the ''​X-Llng-Token''​ header. The token is built by using the session ID and authorized virtualhosts list. By default, the Service Token is only available during 30 seconds and for specified virtualhosts. The token can be use to send service headers to webapp2 like origin host by example.
 +
 +You can set ServiceToken TTL in the virtualHost options in Manager for each required virtualHost.
  
 You can set ServiceToken default timeout (30 seconds) by editing ''​lemonldap-ng.ini''​ in section [handler]: You can set ServiceToken default timeout (30 seconds) by editing ''​lemonldap-ng.ini''​ in section [handler]: