Authentification microservice, ostensibly
Find a file
2024-10-12 22:31:07 +03:00
auth Refactor everything 2024-10-12 21:45:00 +03:00
cmd Load config from file 2024-10-12 22:15:44 +03:00
config Load config from file 2024-10-12 22:15:44 +03:00
storage Add SQLite file creation 2024-10-12 21:58:42 +03:00
.gitignore Add SQLite file creation 2024-10-12 21:58:42 +03:00
config.json Load config from file 2024-10-12 22:15:44 +03:00
go.mod Refactor database to separate package 2024-10-12 20:41:30 +03:00
go.sum Replace JSON with SQLite 2024-10-12 18:39:38 +03:00
main.go Refactor everything 2024-10-12 21:45:00 +03:00
Makefile Refactor everything 2024-10-12 21:45:00 +03:00
README.md Update README.md 2024-10-12 22:31:07 +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

pye serve [--config] [--port] [--db]

Serve a simple JWT auth system

  • 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

pye verify <jwt> <pem file>

Verify a JWT with a public key from a PEM file