<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
    <div id="smartTemplate4-template">Hi,<br>
      <br>
      when you are a user of a website using Shibboleth, the login is
      straightforward. You click the login button on the website in the
      browser, are redirected to Shibboleth, enter your login data, and
      are then redirected back to the webpage.<br>
      <br>
      But I would like to automate that login without a browser, almost
      like in a bash script.<br>
      <br>
      Now handling the first redirection is simple, it is 302-status in
      this case. Then send the POST request with the login data. Zero
      issues there, and it is the same for all users. <br>
      <br>
      But how do you handle the second redirection back to the webpage?
      What different kinds of redirects are used by SAML2/Shibboleth? In
      the browser there seems to be a javascript performing the
      redirection, but that cannot be used by scripts. <br>
      Some Shibboleths have a <button> to click, and sometimes
      that button is actually a <input type=select> element.
      Sometimes there are different buttons, one aborting everything. I
      think I saw a link once.<br>
      Is there a list of all possible redirects used by Shibboleth? (the
      real issue is that my Shibboleth password has expired, so I cannot
      see anything past the login form, but a solution for all
      Shibboleths better than one for a specific Shibboleth anyways)<br>
      <br>
      <br>
    </div>
    Bye,<br>
    Benito<br>
  </body>
</html>