This adds a module "mozsvc.user" which provides some conveniences for using the server-core auth backends:
* user database backend loaded as a plugin from "auth" config section
* user database backend available as request.registry["auth"]
* authenticated user's data as a dict at request.user
* function mozsvc.user.authenticate() to easily auth against the configured backend
You have to explicitly include this since some apps won't want it:
This adds a module "mozsvc.user" which provides some conveniences for using the server-core auth backends:
You have to explicitly include this since some apps won't want it:
I'm tempted to have this install a default AuthenticationPolicy and AuthorizationPolicy as well, but let's start small.