diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/security.rst | 2 | ||||
| -rw-r--r-- | docs/quick_tutorial/authentication/tutorial/security.py | 5 | ||||
| -rw-r--r-- | docs/quick_tutorial/authorization/tutorial/security.py | 5 |
3 files changed, 3 insertions, 9 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index e3820ce19..72c2721f6 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -698,7 +698,7 @@ A "secret" is required by various components of Pyramid. For example, the helper below might be used for a security policy and uses a secret value ``seekrit``:: - helper = AuthTktCookieHelper('seekrit', hashalg='sha512') + helper = AuthTktCookieHelper('seekrit') A :term:`session factory` also requires a secret:: diff --git a/docs/quick_tutorial/authentication/tutorial/security.py b/docs/quick_tutorial/authentication/tutorial/security.py index e8d323ea7..8324000ed 100644 --- a/docs/quick_tutorial/authentication/tutorial/security.py +++ b/docs/quick_tutorial/authentication/tutorial/security.py @@ -17,10 +17,7 @@ USERS = {'editor': hash_password('editor'), class SecurityPolicy: def __init__(self, secret): - self.authtkt = AuthTktCookieHelper( - secret=secret, - hashalg='sha512', - ) + self.authtkt = AuthTktCookieHelper(secret=secret) def authenticated_identity(self, request): identity = self.authtkt.identify(request) diff --git a/docs/quick_tutorial/authorization/tutorial/security.py b/docs/quick_tutorial/authorization/tutorial/security.py index a004a20f2..5b3e04a5f 100644 --- a/docs/quick_tutorial/authorization/tutorial/security.py +++ b/docs/quick_tutorial/authorization/tutorial/security.py @@ -20,10 +20,7 @@ GROUPS = {'editor': ['group:editors']} class SecurityPolicy: def __init__(self, secret): - self.authtkt = AuthTktCookieHelper( - secret=secret, - hashalg='sha512', - ) + self.authtkt = AuthTktCookieHelper(secret=secret) self.acl = ACLHelper() def authenticated_identity(self, request): |
