Perhaps have a look at the "Python REST Client Example - Spring Security Server" example in the link below, Spring security does things a little differently as noted here.
https://wiki.jasig.org/display/CASUM/RESTful+API -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev