{"repo":"matteobaccan/HarbourJwt","free":true,"listed":false,"github":"https://github.com/matteobaccan/HarbourJwt","clone":"git clone https://github.com/matteobaccan/HarbourJwt.git","description":"JWT Implementation for Harbour","language":"xBase","stars":11,"topics":["harbour","harbour-language","jwt","hacktoberfest"],"license":"GPL-3.0","category":"auth-billing-email","readme_excerpt":"HarbourJwt JWT Implementation for Harbour A simple library to work with JSON Web Token and JSON Web Signature for Harbour language. You can find more information about JWT on the official website. Harbour JWT supports the following algorithms: - HS256 - HS384 - HS512 Installation Package is available on GitHub, Documentation JWT is a class library that can allow you to generate and validate JWT tokens Token generation To create a token you must 1 Load jwt.hrb library 2 Create an empty JWT object 3 Configure a valid header, setting Type = JWT and an available Algorithm. At the moment the Algorithms available are: HS256, HS384, and HS512 4 Load a payload. The properties permitted in a payload are: A simple payload can be formed by: Subject, Name, and IssueAt 5 Finally you must indicate a secret 6 Now you can get a token Token verification Token verifications are also simple 1 Load jwt.hrb library 2 Create an empty JWT object 3 Verify the token Verify return a .T. if the token is valid. Otherwise with you can get the decode error Contribution Feel free to update this code with a new PR","default_branch":null,"files":null,"tree":[],"storefront":"/r/matteobaccan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/matteobaccan/HarbourJwt/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."}