Authentification microservice, ostensibly
Find a file
2024-10-13 16:16:19 +03:00
auth Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
cmd Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
config Add debug mode to log 2024-10-13 11:25:00 +03:00
logging Add debug mode to log 2024-10-13 11:25:00 +03:00
storage Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
.gitignore Add SQLite file creation 2024-10-12 21:58:42 +03:00
config.json Add subcommand to find a user 2024-10-13 14:49:41 +03:00
go.mod Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
go.sum Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
main.go Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
Makefile Move to Cobra for CLI 2024-10-13 16:16:19 +03:00
README.md Add debug mode to log 2024-10-13 11:25:00 +03:00

Auth microservice

Mission: Science compels us to create a microservice!

This is the repository for my JWT auth microservice assignment with(out) blazingly fast cloud-native web3 memory-safe blockchain reactive AI (insert a dozen more buzzwords of your choosing) technologies.

This should be done by October 17th 2024. Or, at the very least, in a state that proves I am competent Go developer.

Commands

JWT server

Serve a simple JWT auth system
Usage: pye serve [--config] [--port] [--db]

  • POST /register - register a user with Basic Auth
  • POST /login - get a JWT token by Basic Auth
  • GET /pem - get PEM-encoded public RS256 key
  • Data and RS256 key persistently stored in an SQLite database and a PEM file

JWT verification

Verify a JWT with a public key from a PEM file
Usage: pye verify <jwt> <pem_file>