Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Challengenes the client for a Basic authentication.

        def basicAuth(realm):
    """Challengenes the client for a Basic authentication."""
    assert '"' not in realm, "Realms cannot contain the \" (quote) character."

    return 'Basic realm="%s"' % realm
        


src/c/i/circuits-3.0.0.dev/examples/web/shadowauth.py   circuits(Download)
                return
 
        response.headers["WWW-Authenticate"] = _httpauth.basicAuth(self.realm)
 
        return Unauthorized(request, response)