#jwt #claim #key #processing #lockpad

lockpad-auth

utilities for processing JWT claims

3 releases (breaking)

0.4.0 Apr 6, 2024
0.3.0 Feb 29, 2024
0.2.0 Apr 1, 2023

#409 in Authentication

Download history 93/week @ 2024-02-23 58/week @ 2024-03-01 48/week @ 2024-03-08 9/week @ 2024-03-15 33/week @ 2024-03-29 177/week @ 2024-04-05

221 downloads per month

MIT license

13KB
241 lines

lockpad

A simple authentication service REST API. lockpad provides an HTTP service (via axum) that can handle user registration and login. Authentication yields a JWT that is signed by the provided keys. Utility functionality is included, especially for axum.

This is still being fleshed out, but is already useful for prototyping.

Getting started

The primary development dependency is nix, with the project being bundled as a nix flake.

For tips on using the provided development environment, see HACKING.md.

running

The authentication service can be ran: cargo run --bin lockpad-cli server http. You'll need to configure environment variables for:

  • DynamoDB connection and table information
  • Secret/public keys

The provided cli can be used to generate keys: cargo run --bin lockpad-cli -- --help

Dependencies

~15–25MB
~443K SLoC