oxidetalis/crates
Awiteb 20a8ac6715
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 4s
Rust CI / Rust CI (push) Successful in 5m24s
refactor: Use PublicKey and Signature as parameters
### Changes
- Implement `salvo_oapi::Extractible` and `salvo_oapi::EndpointArgRegister`
for `PublicKey`
- Implement `salvo_oapi::Extractible` and `salvo_oapi::ToParameters` for `Signature`

### Notes
I did not implement `salvo_oapi::ToParameters` for `PublicKey` because it will
not be used as an OpenAPI parameter. Instead, Salvo will register it using the
`EndpointArgRegister` trait.

Similarly, I did not implement `salvo_oapi::EndpointArgRegister` for `Signature`
because it will not be used as an argument in the endpoint. Instead, the
signature will be verified by the signature middleware, and we will only use it
as a parameter.

Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Reviewed-on: #33
Fixes: #21
Helped-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-28 12:56:20 +03:00
..
oxidetalis refactor: Use PublicKey and Signature as parameters 2024-07-28 12:56:20 +03:00
oxidetalis_config refactor: Change config private key type to K256Secret 2024-07-24 01:17:13 +03:00
oxidetalis_core refactor: Use PublicKey and Signature as parameters 2024-07-28 12:56:20 +03:00
oxidetalis_entities feat: Add last_logout column to users table 2024-07-24 11:49:39 +03:00
oxidetalis_migrations feat: Add last_logout column to users table 2024-07-24 11:49:39 +03:00