pyramid_authsanity

Authentication Service Policy

class pyramid_authsanity.AuthServicePolicy(debug=False)[source]
authenticated_userid(request)[source]

Returns the authenticated userid for this request.

effective_principals(request)[source]

A list of effective principals derived from request.

forget(request)[source]

A list of headers which will delete appropriate cookies.

remember(request, principal, **kw)[source]

Returns a list of headers that are to be set from the source service.

unauthenticated_userid(request)[source]

We do not allow the unauthenticated userid to be used.