Documentation ¶
Overview ¶
third-example provides a more "robust" use of authentication and unauthentication, highlighting trails' flexibility to work with an application's own implementation of important interfaces describing the currentUser concept at the heart of trails.
As well, it leverages middleware.InjectResponder instead of wrapping the Ranger's Responder in some intermediate struct HTTP handlers are methods on, thereby allowing those handlers to be standalone functions.
Click to show internal directories.
Click to hide internal directories.