Update README.md
This commit is contained in:
parent
7fbe06c2ab
commit
ba31bc24a6
1 changed files with 7 additions and 6 deletions
13
README.md
13
README.md
|
@ -9,16 +9,17 @@ with(out) blazingly fast cloud-native web3 memory-safe blockchain reactive AI
|
||||||
This should be done by **October 17th 2024**. Or, at the very least,
|
This should be done by **October 17th 2024**. Or, at the very least,
|
||||||
in a state that proves I am competent Go developer.
|
in a state that proves I am competent Go developer.
|
||||||
|
|
||||||
## Current functionality
|
## Commands
|
||||||
|
|
||||||
## `serve`
|
## `pye serve [--config] [--port] [--db]`
|
||||||
|
|
||||||
|
Serve a simple JWT auth system
|
||||||
|
|
||||||
* `POST /register` - register a user with Basic Auth
|
* `POST /register` - register a user with Basic Auth
|
||||||
* `POST /login` - get a JWT token by Basic Auth
|
* `POST /login` - get a JWT token by Basic Auth
|
||||||
* `GET /pem` - get PEM-encoded public RS256 key
|
* `GET /pem` - get PEM-encoded public RS256 key
|
||||||
* Data persistently stored in an SQLite database
|
* Data and RS256 key persistently stored in an SQLite database and a PEM file
|
||||||
* RS256 key loaded from a file or generated on startup if missing
|
|
||||||
|
|
||||||
## `verify`
|
## `pye verify <jwt> <pem file>`
|
||||||
|
|
||||||
* Verify JWT via public key in a PEM file
|
Verify a JWT with a public key from a PEM file
|
Loading…
Reference in a new issue