{"repo":"ggicci/caddy-jwt","free":true,"listed":false,"github":"https://github.com/ggicci/caddy-jwt","clone":"git clone https://github.com/ggicci/caddy-jwt.git","description":"🆔 Caddy Module JWT Authentication","language":"Go","stars":123,"topics":["caddy-module","caddy-authentication","jwt","jwt-authentication","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"caddy-jwt A Caddy HTTP Module - who Facilitates JWT Authentication This module fulfilled http.handlers.authentication middleware as a provider named jwt . Documentation Install Build this module with caddy at Caddy's official download site. Or build it with xcaddy locally by yourself: Requirements for a local build : caddy-jwt Version Go version Caddy Version ----------------- ---------- ------------- v1.1.1 =1.25.0 =2.10.1 v1.1.0 =1.20.0 =2.8.0 Sample Caddyfile NOTE : 1. If you were using symmetric signing algorithms, e.g. HS256 , encode your key bytes in base64 format as sign key 's value. 2. If you were using asymmetric signing algorithms, e.g. RS256 , encode your public key in x.509 PEM format as sign key 's value. 3. If you were using JWK , configure jwk url and leave sign key unset. 4. caddy-jwt will determine the signing algorithm by looking into the following values: 1. alg value in the JWT header; 2. alg value of the matched JWK if using JWK; 3. value of the sign alg config. 5. The priority of from xxx is from query from header from cookies . 6. Bypass the verification by turning on skip verification option, #85. 7. Instead of specifying the sign key directly as a value, you can use a feature introduced in Caddy v2.8.0 to load it from a file using sign key {file./path/to/sign key.txt} . How to do integration test of caddy-jwt locally? For caddy-jwt users , we assume you've already got a custom caddy binary built with our caddy-jwt plugin. Then you can run the test: N","default_branch":null,"files":null,"tree":[],"storefront":"/r/ggicci","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ggicci/caddy-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."}