in reply to Perl Mechanize and Single Sign On

$mech->cookie_jar(HTTP::Cookies->new());

So WWW::Mechanize does an in memory cookie_jar already, why write that?

Any pointers to further debugging or what I am missing?

Hmm, you iterate over all the forms on the page, and then you do ->click .... I don't think that is going to work, you never selected a form