diff options
| author | Chris McDonough <chrism@plope.com> | 2012-11-04 16:07:29 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-11-04 16:07:29 -0500 |
| commit | fee21a3199d2d6e24e34c1e4bc71dfcfa0e31e64 (patch) | |
| tree | 2569cc77dd3bcd22748567ba15ee11d641645e2b /docs/narr | |
| parent | db9fbf0773dc143126589897d9b1f1d98c2dc7b0 (diff) | |
| parent | bba64b29653cc49f153baeb62c44b0fa7006d1a9 (diff) | |
| download | pyramid-fee21a3199d2d6e24e34c1e4bc71dfcfa0e31e64.tar.gz pyramid-fee21a3199d2d6e24e34c1e4bc71dfcfa0e31e64.tar.bz2 pyramid-fee21a3199d2d6e24e34c1e4bc71dfcfa0e31e64.zip | |
Merge branch 'fix.695'
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/security.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index 3c9759e6c..3a94b4f7d 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -90,13 +90,13 @@ For example: :linenos: from pyramid.config import Configurator - from pyramid.authentication import SHA512AuthTktAuthenticationPolicy + from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy - authentication_policy = SHA512AuthTktAuthenticationPolicy('seekrit') - authorization_policy = ACLAuthorizationPolicy() + authn_policy = AuthTktAuthenticationPolicy('seekrit', hashalg='sha512') + authz_policy = ACLAuthorizationPolicy() config = Configurator() - config.set_authentication_policy(authentication_policy) - config.set_authorization_policy(authorization_policy) + config.set_authentication_policy(authn_policy) + config.set_authorization_policy(authz_policy) .. note:: the ``authentication_policy`` and ``authorization_policy`` arguments may also be passed to their respective methods mentioned above |
