Commit 1b6c771
Rafał Miłecki
Detect redirection command in failed authentication response
In some situations server may command user agent to redirect to a
specific page as a result of a failed authentication attempt.
Examples of such responses:
1. ret=0,redir=/remote/login?&err=sslvpn_login_permission_denied&lang=en
2. ret=0,redir=/remote/login?&err=sslvpn_login_password_expired&lang=en
When using a real web browser it results in JavaScript redirecting user
to the URL from "redir" key.
Those redirection URLs may contain a meaningful error code (see examples
above). Check them and log a relevant error message with "err" parameter
value if present.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>1 parent 12fc457 commit 1b6c771
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| 721 | + | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
725 | 744 | | |
726 | 745 | | |
727 | 746 | | |
| |||
0 commit comments