mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2026-02-02 09:25:09 +01:00
chore: fmt
This commit is contained in:
parent
f77a7ce54f
commit
b0667729a3
32 changed files with 3596 additions and 7 deletions
40
README.md
Normal file
40
README.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# jwt-authorizer
|
||||
|
||||
JWT authorizer Layer for Axum.
|
||||
|
||||
## Features
|
||||
|
||||
- JWT token verification (Bearer)
|
||||
- Claims extraction
|
||||
- JWKS endpoint support (with refresh)
|
||||
- algoritms: ECDSA, RSA, EdDSA, HS
|
||||
|
||||
## Usage
|
||||
|
||||
See documentation of the [`jwt-authorizer`](./jwt-authorizer/docs/README.md) module or the [`demo-server`](./demo-server/) example.
|
||||
|
||||
## Development
|
||||
|
||||
### Key generation
|
||||
|
||||
EC (ECDSA) - (algorigthm ES256 - ECDSA using SHA-256)
|
||||
|
||||
curve name: prime256v1 (secp256r1, secp384r1)
|
||||
|
||||
> openssl ecparam -genkey -noout -name prime256v1 | openssl pkcs8 -topk8 -nocrypt -out ec-private.pem
|
||||
|
||||
> openssl ec -in ec-private.pem -pubout -out ec-public-key.pem
|
||||
|
||||
EdDSA (Edwards-curve Digital Signature Algorithm)
|
||||
|
||||
(Ed25519 - implémentation spécifique de EdDSA, utilisant la Courbe d'Edwards tordue)
|
||||
|
||||
> openssl genpkey -algorithm ed25519
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are wellcome!
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
Loading…
Add table
Add a link
Reference in a new issue