diff options
| author | Michael Merickel <michael@merickel.org> | 2012-11-04 11:19:41 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2012-11-04 11:19:41 -0600 |
| commit | 19b8207ff1e959669d296407ed112545364a495d (patch) | |
| tree | 02ce76919f96d9f3f74bf1db99e00be3598183c7 /docs/tutorials/wiki2/authorization.rst | |
| parent | 9149461a45399a9f7f23322daa7c02e1397f9a91 (diff) | |
| download | pyramid-19b8207ff1e959669d296407ed112545364a495d.tar.gz pyramid-19b8207ff1e959669d296407ed112545364a495d.tar.bz2 pyramid-19b8207ff1e959669d296407ed112545364a495d.zip | |
merged SHA512AuthTktAuthenticationPolicy into AuthTktAuthenticationPolicy
AuthTktAuthenticationPolicy now accepts a hashalg parameter and is no
longer deprecated. Docs recommend overriding hashalg and using 'sha512'.
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
| -rw-r--r-- | docs/tutorials/wiki2/authorization.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst index e3087dea5..1ddf8c82d 100644 --- a/docs/tutorials/wiki2/authorization.rst +++ b/docs/tutorials/wiki2/authorization.rst @@ -151,12 +151,12 @@ Now add those policies to the configuration: (Only the highlighted lines need to be added.) -We are enabling an ``SHA512AuthTktAuthenticationPolicy``, it is based in an +We are enabling an ``AuthTktAuthenticationPolicy``, it is based in an auth ticket that may be included in the request, and an ``ACLAuthorizationPolicy`` that uses an ACL to determine the allow or deny outcome for a view. -Note that the :class:`pyramid.authentication.SHA512AuthTktAuthenticationPolicy` +Note that the :class:`pyramid.authentication.AuthTktAuthenticationPolicy` constructor accepts two arguments: ``secret`` and ``callback``. ``secret`` is a string representing an encryption key used by the "authentication ticket" machinery represented by this policy: it is required. The ``callback`` is the |
