fietsboek.security module¶
Module implementing the user authentication.
- class fietsboek.security.SecurityPolicy(cookie_secret)¶
Bases:
object
Implementation of the Pyramid security policy.
- authenticated_userid(request)¶
See
pyramid.interfaces.ISecurityPolicy.authenticated_userid()
- forget(request, **kw)¶
- identity(request)¶
- permits(request, context, permission)¶
- remember(request, userid, **kw)¶
- remember_cookie(request, userid, **kw)¶
Return the headers for remembering the user using the cookie method.
This is used for the “Remember me” functionality, as the cookie doesn’t expire (unlike the session).
The parameters are the same as for
remember()
.