authentication

Defines website authentication helpers.

gratipay.security.authentication.start_user_as_anon()[source]

Make sure we always have a user object, regardless of exceptions during authentication.

gratipay.security.authentication.authenticate_user_if_possible(request, user)[source]

This signs the user in.