Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore IfExp Call AttributeLoad NameLoad attr Str Str Str With Call NameLoad NameLoad Str NameStore body Assign NameStore GeneratorExp Call AttributeLoad Call AttributeLoad NameLoad attr attr Str comprehension NameStore NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad Assign NameStore BoolOpAnd NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return CompareEq Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Return Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad Str keyword Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call NameLoad TupleLoad Str Num Expr Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A Shadow Auth Demo

An example of a Circuits Component that requires users authenticate
against /etc/passwd or /etc/shadow before letting them into the web site.
 os path crypt crypt socket gethostname re compile compile_regex circuits handler Component circuits.web _httpauth Server Controller circuits.web.errors HTTPError Unauthorized check_auth N/A N/A user password N/A N/A N/A salt_pattern N/A compile_regex \$.*\$.*\$ N/A passwd N/A N/A N/A path exists /etc/shadow /etc/shadow /etc/passwd N/A N/A open passwd r f N/A N/A rows N/A N/A N/A N/A N/A line strip split : N/A line f N/A records N/A row N/A row rows N/A N/A row N/A 0 user N/A hash N/A records N/A N/A records N/A 0 N/A 1 N/A salt N/A N/A N/A N/A salt_pattern match hash group N/A N/A N/A crypt password salt hash N/A PasswdAuth N/A Component N/A N/A channel web init N/A N/A self realm N/A None N/A N/A N/A self realm N/A realm N/A gethostname N/A _on_request N/A N/A self event request response N/A N/A N/A N/A authorization N/A request headers N/A N/A ah N/A N/A _httpauth parseAuthorization N/A N/A request headers N/A authorization N/A N/A ah None N/A N/A N/A N/A event stop N/A N/A HTTPError request response 400 N/A N/A username password N/A N/A ah N/A username N/A ah N/A password N/A N/A check_auth username password N/A N/A N/A request login username N/A N/A N/A N/A response headers N/A WWW-Authenticate N/A N/A _httpauth basicAuth N/A self realm N/A N/A N/A event stop N/A N/A Unauthorized request response N/A N/A handler request priority 1.0 N/A Root N/A Controller N/A index N/A N/A self N/A N/A N/A N/A N/A Hello, {0:s} format N/A N/A self request login N/A N/A N/A app N/A Server N/A 0.0.0.0 8000 N/A N/A N/A N/A PasswdAuth register app N/A N/A N/A N/A Root register app N/A N/A N/A app run