parameters: (app, global_conf, realm, authfunc, **kw)
return_statement: return AuthBasicHandler(app, realm, authfunc)
docstring: Grant access via basic authentication
  
      Config looks like this::
  
        [filter:grant]
        use = egg:Paste#auth_basic
        realm=myrealm
        authfunc=somepackage.somemodule:somefunction
docstring_summary: Grant access via basic authentication
docstring_tokens: Grant access via basic authentication
function: def make_basic(app, global_conf, realm, authfunc, **kw):
      """
      Grant access via basic authentication
  
      Config looks like this::
  
        [filter:grant]
        use = egg:Paste#auth_basic
        realm=myrealm
        authfunc=somepackage.somemodule:somefunction
  
      """
      from paste.util.import_string import eval_import
      import types
      authfunc = eval_import(authfunc)
      assert isinstance(authfunc, types.FunctionType), "authfunc must resolve to a function"
      return AuthBasicHandler(app, realm, authfunc)
function_tokens: def make_basic ( app , global_conf , realm , authfunc , * * kw ) : from paste . util . import_string import eval_import import types authfunc = eval_import ( authfunc ) assert isinstance ( authfunc , types . FunctionType ) , "authfunc must resolve to a function" return AuthBasicHandler ( app , realm , authfunc )