When this directive is used, authentication information is obtained from a REMOTE_USER key in the WSGI environment, assumed to be set by a WSGI server or an upstream middleware component.
1 2 3 4 | <remoteuserauthenticationpolicy
environ_key="REMOTE_USER"
callback=".somemodule.somefunc"
/>
|
You may create an instance of the pyramid.authentication.RemoteUserAuthenticationPolicy 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.RemoteUserAuthenticationPolicy.