View Source BtrzAuth.Pipeline.TokenSecured (BtrzAuth v1.3.0)
This pipeline will:
- Check the x-api-key header is sent and load the implemented resource in
conn.private[:account]
. - Validate the providers if passed via query params.
- Add the premium keys of the providers to the ones of the current account.
- Verify the token with the private key or the configured main and secondary secret keys in case the token could be an internal one, then ensure authenticated.
Summary
Functions
Callback implementation for Plug.call/2
.
Callback implementation for Plug.init/1
.