{"repo":"HashLoad/horse-jwt","free":true,"listed":false,"github":"https://github.com/HashLoad/horse-jwt","clone":"git clone https://github.com/HashLoad/horse-jwt.git","description":"Middleware for JWT in HORSE","language":"Pascal","stars":84,"topics":["horse","horse-jwt","middleware","jwt","token","auth","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Horse-JWT Horse-JWT is an official middleware for generating and validating JWTs in APIs developed with the Horse framework. We created a channel on Telegram for questions and support: ⭕ Prerequisites Delphi - delphi-jose-jwt - JOSE is a standard that provides a general approach to the signing and encryption of any content. Lazarus - hashlib4pascal - is an Object Pascal hashing library released under the permissive MIT License which provides an easy to use interface for computing hashes and checksums of data. It also supports state based (incremental) hashing. ⚙️ Installation Installation is done using the boss install command: If you choose to install manually, simply add the following folders to your project, in Project Options Resource Compiler Directories and Conditionals Include file search path Delphi Lazarus ✔️ Compatibility This middleware is compatible with projects developed in: - [X] Delphi - [X] Lazarus ⚡️ Quickstart Delphi All requests need token authorization. Some routes require authentication Skip routes Usage samples How to create the token? How to create a custom Payload? Here is an example of a custom payload class. For the following examples, it is necessary to use this class. How to create a token with the custom payload? How to read the custom Payload? How to read the Payload from Services container (Avoiding Session conflicts) If you need to use Req.Session for other purposes in your application (e.g. database sessions or custom user profiles), you can ","default_branch":null,"files":null,"tree":[],"storefront":"/r/HashLoad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HashLoad/horse-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}