Skip to content

About

Simplest possible webserver and webpage which can do maglic link based auth.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magic-auth

Simplest possible webserver and webpage which can do maglic link based auth.

Set Up

  1. 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
  1. 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
  1. Navigate to https://example.com
    • If in chrome type "thisisunsafe" and press enter.

TODO

  • 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.

About

Simplest possible webserver and webpage which can do maglic link based auth.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages