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:latest:authslave [2019/09/14 23:23]
cmaudoux [Example]
documentation:latest:authslave [2019/09/14 23:25] (current)
Line 23: Line 23:
   * **Control header name**: header that contains a value to control. Let this parameter empty to disable the checking.   * **Control header name**: header that contains a value to control. Let this parameter empty to disable the checking.
   * **Control header content**: value to control. Let this parameter empty to disable the checking.   * **Control header content**: value to control. Let this parameter empty to disable the checking.
 +  * **Display authentication logo**: display Slave logo.
  
 You have then to declare HTTP headers exported by the main SSO (in **Exported Variables**). Example : You have then to declare HTTP headers exported by the main SSO (in **Exported Variables**). Example :
Line 29: Line 30:
 |  uid  |  Auth-User ​ | |  uid  |  Auth-User ​ |
 |  mail  |  User-Email ​ | |  mail  |  User-Email ​ |
 +
 +==== Example ====
 +
 +  * Request with curl (AuthChoice with Slave and Secured cookie => double cookies for a single session):
 +**Control header name**: control
 +
 +**Control header content**: password
 +<​code>​
 +curl -k https://​127.0.0.1:​19876 -H 'CN: dwho' -H 'Host: auth.example.com'​ -H '​Accept:​ application/​json'​ -H '​control:​ password'​ -d "​lmAuth=2_Slave"​ | json_pp
 +</​code>​
 +  * Response for good authentication:​
 +<code javascript>​
 +{
 +    "​result"​ : 1,
 +    "​error"​ : 0,
 +    "​id_http"​ : "​5237ce20290d6110915a05d62f52618955b5f71b6dd3424481372ad419a5b122",​
 +    "​id"​ : "​16fec9bd7a0523328568ca919ee0a6d6e329832f6c302bf36b106db92b5ec23d"​
 +}
 +</​code>​
  
 See also [[exportedvars|exported variables configuration]]. See also [[exportedvars|exported variables configuration]].