🐘
pREST
  • pRESTd
    • Who uses pREST
    • pRESTd Key Features
    • Contributing to pRESTd
    • pREST in the Media
    • Code of Conduct
    • Code of Ethics
  • Get pREST
    • Development Guide
    • Start with Docker
    • Start with Golang
    • Start with Homebrew
  • Get Started
    • Configuring pREST
    • CORS Support
    • Cache
    • Migrating
    • Permissions
  • API Reference
    • Custom Queries
    • Auth
    • Parameters
    • Advanced Queries
  • Deployment
    • Deploying with Docker
    • Deploy in Heroku
  • Plugins
    • Middleware Plugin
    • Endpoint Plugin
  • Integrations
    • Amazon Redshift
    • TimescaleDB
    • YugabyteDB
Powered by GitBook
On this page
  • Bearer
  • Basic

Was this helpful?

Edit on GitHub
  1. API Reference

Auth

PreviousCustom QueriesNextParameters

Last updated 1 year ago

Was this helpful?

prestd has support in JWT Token generation based on two fields (example user and password), being possible to use an existing table from your database to login configuring some parameters in the configuration file (or environment variable), by default this feature is disabled.

  • Bearer - , bearer tokens to access OAuth 2.0-protected resources

  • Basic - , base64-encoded credentials. More information below

understand more about http authentication

Bearer

curl -i -X POST http://127.0.0.1:8000/auth -H "Content-Type: application/json" -d '{"username": "<username>", "password": "<password>"}'

Basic

curl -i -X POST http://127.0.0.1:8000/auth --user "<username>:<password>"
RFC 6750
RFC 7617
see this documentation