Support classes for custom authentication.