Pour encoder l'URL de redirection, l'agent utilise des variables d'environnement Apache et des paramètres de configuration :
Cesparamètres peuvent être configurés dans le manager, dans Paramètres généraux
> Paramètres avancés
> Redirections des agents
.
Les agents utilisent le code d'erreur d'Apache dans les cas suivants :
These errors can be catch trough Apache ErrorDocument
directive or Nginx error_page
directive, to redirect user on a specific page:
# Apache: Common error page and security parameters ErrorDocument 403 http://auth.example.com/?lmError=403 ErrorDocument 500 http://auth.example.com/?lmError=500 ErrorDocument 503 http://auth.example.com/?lmError=503
# Nginx: Common error page and security parameters error_page 403 http://auth.example.com/?lmError=403; error_page 500 http://auth.example.com/?lmError=500; error_page 503 http://auth.example.com/?lmError=503;
It is also possible to redirect the user without using ErrorDocument
: the Handler will not returnV 403, 500, 503 code, but code 302 (REDIRECT).
L'utilisateur sera redirigé vers l'URL du portail avec une erreur dans le paramètre lmError
de l'URL.
Ces paramètres peuvent être configurés dans le manager, dans Paramètres généraux
> Paramètres avancés
> Redirections des agents
:
WWW-Authenticate
header containing “SSO <portal-URL>”. Set this option to 1 to keep the old behavior (return of HTML code).