Skip to content

quochuydev/next-multiple-oidc-sessions

Repository files navigation

Multiple OIDC sessions

Based on next-auth concept, the Auth application for managing multiple OIDC sessions.

Flows

Authentication

authentication.png

Authorization

authorization.png

End session

end_session.png

Commands

Pre-Dev 🙌

Install Task

brew install go-task/tap/go-task

Get all tasks

task

Install packages

yarn install

Add hosts to /etc/hosts

echo "127.0.0.1 app.example.local auth.example.local" | sudo tee -a /etc/hosts > /dev/null

Generate New SSL certificates (Optional)

cd nginx

./openssl.sh

Trust the certificates (MacOS)

cd nginx

sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain localhost.crt

Start containers 🚀

task up

Dev 👉

task dev

Deploy

Setup AWS EC2