Add a simple example of custom authentication in the documentation

Refs #1471