API Reference Phoenix API Toolkit v2.1.1
Store the raw body for verification purposes.
Plug.Parsers :body_reader option in endpoint pipeline.
Dynamic filtering of Ecto queries is useful for creating list/index functions, and ultimately list/index endpoints, that accept a map of filters to apply to the query. Such a map can be based on HTTP query parameters, naturally.
Generic validators and helper functions for validating Ecto changesets.
Request validator for generic (REST) requests. Meant to supplement database-level Ecto changesets. For example when creating a new entity, your database contexts / changesets will do their own validations and it would be useless to do so an extra time.
Error raised when a state-changing request does not have a "x-csrf-token" header.
Error raised the HMAC used to sign a request body is invalid
Error raised when a content-carrying request does not have a content-type header.
Plug to verify an Oauth2 JWT. The JWT must be passed to the application in the
request header prefixed with
Bearer:. The Plug must be configured with a set of JSON Web Keys used to
sign the JWT's, a whitelist of algorithms that may be used to sign the JWT and the expected issuer.
dummy_verify setting can be used to skip JWT verification for development and testing.
:jose dependency in your mix.exs file.
Error raised when an Oauth2 token is invalid
Various helper functions for writing tests.