This repository contains a POC of how to use JWT with a SSO service to authenticate a user across multiple services.
Asymmetric cryptography is required to sign and verify JWT. Only the
authentication server (Authserv) requires access to the private key. Check
each project for more information about how you should provide the public key
# https://stackoverflow.com/a/44474607/19176002
openssl genrsa -out keypair.pem 2048
openssl rsa -in keypair.pem -pubout -out public.key
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in keypair.pem -out private.key
A sample Docker compose is provided. svelte-front will be available at
http://localhost:8080
# To start the service
docker compose up -d
# To stop the service
docker compose down
Note: Docker compose requires building the docker containers from source