http_auth::register_filter (public)
http_auth::register_filter [ -url_pattern url_pattern ] [ -proc proc ]
Defined in packages/acs-tcl/tcl/http-auth-procs.tcl
Setup HTTP authentication for a URL pattern
- Switches:
- -url_pattern
(optional)- Follows ns_register_filter rules for defining the pattern to match.
- -proc
(optional)- Name of Tcl procedure to call to check permissions. Use this to figure out what object the URL pattern matches to. This proc should accept two named parameters user_id and url. Should return a valid Tcl true or false value. If empty the site_node matching the URL will be checked.
- Returns:
- Tcl true or false
- Author:
- Dave Bauer <dave@solutiongrove.com>
- Created:
- 2007-03-08
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ad_register_filter preauth GET $url_pattern http_auth::authorize $proc ad_register_filter preauth POST $url_pattern http_auth::authorize $proc ad_register_filter preauth HEAD $url_pattern http_auth::authorize $procXQL Not present: Generic, PostgreSQL, Oracle