To enable the fake SSO method locally, use the following steps:
- Add the following line to
/etc/hosts
:
127.0.0.1 host.docker.internal
- In the main repo, enable the
fake_sso
feature flag:
make feature-toggle feature=fake_sso enabled=true
- In this repo, install the dependencies:
npm i
-
In this repo, create a file called
back-secret.env
in theenv_files
folder, and make sure it has the correctFAKE_SSO_JWT_SECRET
. It should match the one inenv_files/back-secret.env
in the main repo. -
In both repos, run the docker compose file:
docker compose up
NOTE: If you have BASE_DEV_URI
set for use with localtunnel in back-secrets.env, this can conflict with this implementation. Best to disable.