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 - RFC 6750, bearer tokens to access OAuth 2.0-protected resources

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

understand more about http authentication see this documentation


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


curl -i -X POST --user "<username>:<password>"

Last updated