Module Expr Str ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str ListLoad Str Str Str Call NameLoad keyword Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str keyword Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str Num Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Dict Str Str For NameStore AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq SubscriptLoad NameLoad Index Num Str body If CompareIn Str SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore BoolOpOr BoolOpAnd CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad Assign NameStore BoolOpOr BoolOpAnd CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad orelse Assign NameStore NameStore NameStore SubscriptLoad NameLoad Index Num Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad Import alias identifier Import alias identifier TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad For NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num attr Str Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Str If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
This file is part of web2py Web Framework (Copyrighted, 2007-2009).
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>.
License: GPL v2

Tinkered by Szabolcs Gyuris < szimszo n @ o regpreshaz dot eu>
 gluon current redirect URL CasAuth N/A object N/A N/A 
    Login will be done via Web2py's CAS application, instead of web2py's
    login form.

    Include in your model (eg db.py)::

        from gluon.contrib.login_methods.cas_auth import CasAuth
        auth.define_tables(username=True)
        auth.settings.login_form=CasAuth(
            urlbase = "https://[your CAS provider]/app/default/user/cas",
                       actions=['login','validate','logout'])

    where urlbase is the actual CAS server url without the login,logout...
    Enjoy.

    ###UPDATE###
    if you want to connect to a CAS version 2 JASIG Server use this:
        auth.settings.login_form=CasAuth(
            urlbase = "https://[Your CAS server]/cas",
            actions = ['login','serviceValidate','logout'],
            casversion = 2,
            casusername = "cas:user")

    where casusername is the xml node returned by CAS server which contains
    user's username.

     __init__ N/A N/A self g urlbase actions maps casversion casusername N/A None https://web2py.com/cas/cas N/A login validate logout N/A dict username N/A N/A N/A v N/A N/A N/A v get username N/A v N/A user email N/A N/A N/A v N/A N/A N/A v get email None user_id N/A N/A N/A v N/A N/A v N/A user 1 cas:user N/A N/A N/A self urlbase urlbase N/A N/A self cas_login_url N/A %s/%s N/A N/A self urlbase N/A actions N/A 0 N/A N/A self cas_check_url N/A %s/%s N/A N/A self urlbase N/A actions N/A 1 N/A N/A self cas_logout_url N/A %s/%s N/A N/A self urlbase N/A actions N/A 2 N/A N/A self maps maps N/A N/A self casversion casversion N/A N/A self casusername casusername N/A N/A self cas_my_url N/A URL args N/A N/A current request args scheme True N/A login_url N/A N/A self next N/A / N/A N/A N/A N/A current session token N/A N/A self _CAS_login N/A next N/A logout_url N/A N/A self next N/A / N/A N/A N/A N/A current session token None N/A N/A N/A current session auth None N/A N/A N/A self _CAS_logout N/A next N/A get_user N/A N/A self N/A N/A N/A user N/A N/A current session token N/A user N/A N/A d N/A source web2py cas N/A key N/A self maps N/A N/A N/A d N/A key N/A N/A N/A self maps N/A key user N/A d N/A None N/A _CAS_login N/A N/A self N/A N/A N/A 
        exposed as CAS.login(request)
        returns a token on success, None on failed authentication
         N/A urllib N/A N/A self ticket N/A N/A N/A current request vars ticket N/A N/A N/A N/A N/A current request vars ticket N/A N/A N/A redirect N/A %s?service=%s N/A N/A self cas_login_url N/A self cas_my_url N/A N/A url N/A %s?service=%s&ticket=%s N/A N/A self cas_check_url N/A self cas_my_url N/A self ticket N/A data N/A N/A N/A N/A urllib urlopen url read N/A N/A N/A N/A data startswith yes N/A N/A data startswith no N/A N/A data N/A N/A data split N/A N/A N/A data N/A 0 yes N/A N/A N/A : N/A data N/A 1 N/A N/A items N/A N/A N/A data N/A 1 split : N/A a N/A items N/A 0 N/A b N/A N/A N/A N/A len items 1 N/A items N/A 1 a N/A c N/A N/A N/A N/A len items 2 N/A items N/A 2 b N/A N/A a b c N/A data N/A 1 N/A N/A dict user a email b username c N/A None N/A xml.dom.minidom dom N/A xml.parsers.expat expat N/A N/A N/A dxml N/A N/A dom parseString data N/A envelop N/A N/A dxml getElementsByTagName cas:authenticationSuccess N/A N/A N/A len envelop 0 N/A N/A res N/A dict N/A x N/A N/A envelop N/A 0 childNodes N/A N/A N/A N/A N/A N/A x nodeName startswith cas: N/A len N/A x childNodes N/A N/A key N/A N/A N/A N/A x nodeName N/A 4 encode utf8 N/A value N/A N/A N/A N/A N/A x childNodes N/A 0 nodeValue encode utf8 N/A N/A N/A key res N/A N/A N/A res N/A key value N/A N/A N/A N/A isinstance N/A res N/A key list N/A N/A N/A res N/A key N/A N/A res N/A key N/A N/A N/A N/A res N/A key append value N/A res N/A N/A N/A N/A expat ExpatError N/A N/A N/A None N/A _CAS_logout N/A N/A self N/A N/A N/A 
        exposed CAS.logout()
        redirects to the CAS logout page
         N/A urllib N/A N/A redirect N/A %s?service=%s N/A N/A self cas_logout_url N/A self cas_my_url N/A N/A