Automated Shib login for monitoring
Jarno Huuskonen
jarno.huuskonen at uef.fi
Thu Feb 19 06:32:12 EST 2015
Hi,
On Fri, Feb 13, Peter Schober wrote:
> * Wessel, Keith <kwessel at illinois.edu> [2015-02-12 21:58]:
> > I started my work by writing a Perl script that, using LWP, hits an
> > SP's login URL and goes through the IDP login process. It's not
> > pretty, but it almost works.
>
> I'd also consider using ECP for the monitoring, after all your user
> agent is not a common web browser. While that does not traverse the
> exact same path a web browser would I would assume it'd still catch
> the IDP's context not running or other IDP blergs.
With casperjs(http://casperjs.org)+phantoms you can get pretty close to
"normal" browser.
We've shibboleth-sp installed on our nagios host and casperjs script that
logins to nagios(sp) shibboleth protected page and checks that the page
shows testuser attributes etc.
It's possible to add timing events to the casperjs script, so you'll
get information how long each step takes (https://gist.github.com/n8v/3726741)
-Jarno
--
Jarno Huuskonen
More information about the users
mailing list