repoze.who is an identification and authentication framework for WSGI applications. It provides middleware to manage user identification, authentication, and authorization. The current stable version is 3.1.0, and it is actively maintained by the Pylons Project, though releases are infrequent.
pip install repoze.whoVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates setting up `repoze.who` with a basic authenticator and `BasicAuthPlugin` for identification and challenging. It shows how to use `make_who_with_config` to create the middleware and `add_new_r_w_to_environ` to populate the WSGI environment, then access the identity from `request.environ`. To run this example, you will also need to install `webob` and a WSGI server like `waitress`.
Upgrade your environment to Python 3.9+ and ensure all dependencies are Python 3 compatible. Review the 3.x documentation for configuration changes, especially the use of `make_who_with_config`.
Replace direct `WhoMiddleware` imports and instantiation with `from repoze.who.config import make_who_with_config` and use the configuration dictionary.
Ensure `from repoze.who.config import add_new_r_w_to_environ` is imported and called, typically within your WSGI application's request processing or wrapped around the main `WhoMiddleware`.
Carefully review the `who_config` dictionary structure. Ensure all identifiers, authenticators, and challengers are correctly instantiated and provided as `(name, plugin_instance)` tuples in their respective lists. Use `log_level=10` (DEBUG) for more verbose error messages during development.
No dependency data recorded yet.