Simplest possible webserver and webpage which can do maglic link based auth.
- Add the following to
/etc/hosts:
127.0.0.1 example.com
127.0.0.1 auth.example.com
127.0.0.1 othersite.com
- Optional: generate certs (certs are already generated and checked into source (not recommended for prod use))
openssl req -new -newkey rsa:4096 -days 9999 -nodes -x509 \
-subj "/C=US/O=Example Inc./CN=example.com" \
-keyout key.pem -out cert.pem- Navigate to https://example.com
- If in chrome type "thisisunsafe" and press enter.
- Proper dependency injection
- Super test integration tests.
- 404 should be returned for unknown routes
- Strict typing shared with the front end.
- Actually call SNS
- Cut s2s tokens
- Asymetric auth.