Decoded Fat Cookie object.
This class handles decoding and verification of the EID Fat Cookie. You just need to pass it the encoded data from the FC cookie. If there is an error an FatCookieException will be raised and the class will not decode the cookie. You can check on the errors or skip the verification of the cookie by setting check_sig and/or check_expire:
test_user = FatCookie(request.COOKIES['FC'], check_sig=False, check_expire=False)
Class Attributes:
You can access these attributes simply by creating a new FatCookie object then calling the property:
user = FatCookie(request.COOKIES['FC'])
user.eid == "eid stored in cookie 'FC'"