When this directive is used, authentication information is obtained from a repoze.who.identity key in the WSGI environment, assumed to be set by repoze.who middleware.
1 2 3 4 | <repozewho1authenticationpolicy
identifier_name="auth_tkt"
callback=".somemodule.somefunc"
/>
|
You may create an instance of the pyramid.authentication.RepozeWho1AuthenticationPolicy and pass it to the pyramid.config.Configurator constructor as the authentication_policy argument during initial application configuration.
See also Built-In Authentication Policy ZCML Directives and pyramid.authentication.RepozeWho1AuthenticationPolicy.