Hey Simon,
Did these notes ever become available and is there a recording of this session?
I'm currently trying to automate SSO auth and think that using selenium as you have in these notes will be my best bet. As an aside, you mention this script as a standalone script, will this still behave in a similar fashion as authentication scripts where it will launch the authentication script when it finds a logged out indication?