]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
implement fortinet_obtain_cookie
authorDaniel Lenski <dlenski@gmail.com>
Mon, 8 Feb 2021 01:49:10 +0000 (17:49 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 29 Mar 2021 03:13:31 +0000 (20:13 -0700)
commit0a1ebf84876491ee61894d7c24b2ecb5e053c093
tree3dd110c19d876abdaf52ff211c84426c7cc7ac84
parentff0eeeb27b7be736c9ad2b82b89bba26e35e2faf
implement fortinet_obtain_cookie

Fortinet uses HTML-based login forms, similar to Juniper's, resulting in an SVPNCOOKIE.

Believe it or not, they're even more badly designed than Juniper's forms:

1. Inconsistent use of HTTP redirects ('Location' header) vs. Javascript-only redirects
2. Significant <input> fields that aren't actually nested within the <form> tag.
3. Misleading HTTP 405 status ("Method Not Allowed") after incorrect credentials are entered.
4. No apparent way to determine the allowed values for the realm field.
   (Though various articles floating around suggest it comes from the URL-path entry point,
   from which I assume it's triggered by JavaScript.)

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth-html.c
fortinet.c
http.c