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:authchoice [2019/08/12 21:58]
cmaudoux [Configuration]
documentation:2.1:authchoice [2020/04/16 10:58] (current)
coudot [Configuration]
Line 32: Line 32:
 Then, go in ''​Choice Parameters'':​ Then, go in ''​Choice Parameters'':​
   * **URL parameter**:​ parameter name used to set choice value (default: ''​lmAuth''​)   * **URL parameter**:​ parameter name used to set choice value (default: ''​lmAuth''​)
 +  * **AuthBasic handler parameter**:​ authentication module used by AuthBasic handler
   * **Allowed modules**: click on ''​New chain''​ to add a choice.   * **Allowed modules**: click on ''​New chain''​ to add a choice.
  
Line 42: Line 43:
   * **Password module**   * **Password module**
   * **URL**: optional, can be used to redirect on another URL (for example https://​authssl.example.com). This is mandatory if you want to use an Apache authentication module, which is run by Apache before showing the LemonLDAP::​NG portal page.   * **URL**: optional, can be used to redirect on another URL (for example https://​authssl.example.com). This is mandatory if you want to use an Apache authentication module, which is run by Apache before showing the LemonLDAP::​NG portal page.
-  * **Condition**:​ optional, can be used to evaluate an expression to display the tab. +  * **Condition**:​ optional, can be used to evaluate an expression to display the tab. For example, to display a tab only if redirected by Handler from application ''​test1.example.com'',​ you can set this condition:​ 
-  ​* ​+<code perl> 
 +$env->​{urldc} =~ /​test1\.example\.com/​ 
 +</​code>​ 
 <​note>​ <​note>​
 Authentication request to an another URL than Portal URL can lead to a persistent loop between Portal and a redirection URL (pdata is not removed because domains mismatch). To avoid this, you have to set pdata cookie domain by editing ''​lemonldap-ng.ini''​ in section [portal]: Authentication request to an another URL than Portal URL can lead to a persistent loop between Portal and a redirection URL (pdata is not removed because domains mismatch). To avoid this, you have to set pdata cookie domain by editing ''​lemonldap-ng.ini''​ in section [portal]: