1. 12 Oct, 2018 5 commits
  2. 11 Oct, 2018 13 commits
  3. 08 Oct, 2018 10 commits
  4. 06 Oct, 2018 2 commits
  5. 03 Oct, 2018 8 commits
  6. 01 Oct, 2018 1 commit
  7. 30 Sep, 2018 1 commit
    • Daniel Lenski's avatar
      GlobalProtect: query and parse prelogin.esp and use it to build auth forms,... · 3e91f7bf
      Daniel Lenski authored
      GlobalProtect: query and parse prelogin.esp and use it to build auth forms, including preliminary SAML support
      
      Until recently, I've believed the prelogin.esp to be useless, because the
      initial GlobalProtect login form always contains the same two fields:
      username and password.
      
      However, the prelogin response is also important for signalling when SAML
      login is required.  When the VPN uses SAML login, the official GP clients
      redirect the user to a web-based authentication flow (e.g.  Okta,
      https://github.com/dlenski/openconnect/issues/116).
      
      That auth flow eventually sends the official client back to the GP VPN,
      armed with a special cookie field, `portal-userauthcookie` or
      `prelogin-cookie`, that needs to be submitted in place of the password
      (already supported by openconnect as of 8b2bc5f2).
      
      This preliminary SAML support simply includes the SAML method and URL in the
      form banner, and fails with an error message if the cookie field name was
      not specified (since it cannot be autodetected).
      Signed-off-by: default avatarDaniel Lenski <dlenski@gmail.com>
      3e91f7bf