Here are some notes for playing around with login-with locally.
login-with assumes that it will be accessed over https. Since we are just playing around with it, we want to run it locally. We don't want to mess with setting up nginx as a reverse proxy.
We can use
socat as a quick reverse proxy.
First, we need to create a certificate socat can use. (Ideally, socat would create a certificate for us every time it runs, but it doesn't look like that functionality exists...)
openssl is used to create the ceritificate:
$ openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.key