Understand Guardian Pipelines
masterA Guardian Pipeline is a composable way to manage authentication using Plug. It provides two primary components to the Plug.Conn struct, making them available to all downstream plugs:
- Implementation Module: Your custom Guardian module.
- Error Handler: A module responsible for handling unauthenticated requests.
By injecting these into the conn struct at the start of a plug chain, you can easily swap them out downstream for different parts of your application (e.g., switching from a JSON error handler to an HTML error handler).