dreammall-earth / dreammall.earth

Dreammall.earth website & product page
https://dreammall-earth.github.io/dreammall.earth/
Apache License 2.0
7 stars 2 forks source link

🐛 [Bug] Current enrollment-email flow in blueprints is broken #1590

Closed roschaefer closed 2 months ago

roschaefer commented 3 months ago

🐛 Bug

If you try to run dreammallearth-enrollment-email via docker on localhost:

image

You see this bug:

image

There is a default email enrollment flow provided by Authentik.

If you copy this flow into the dreammall folder in authentik/blueprints (as of now in branch provision-authentik-with-blueprints, soon to be merged into master) you can find it under "flows" in the Authentik UI.

If you execute this flow you can find the invitation email in mailpit http://localhost:8025/.

image

image

mahula commented 3 months ago

There is a default email enrollment flow provided by Authentik.

This flow enrolls the user to Authentik.

The dreammallearth-enrollment-email flow needs to be fixed, since this is the flow enrolling users to the DreamMall app

mahula commented 2 months ago

Using the current master I could not reproduce the described problem. On a local Linux machine our Authentik signup flow (dreammallearth-enrollment-email) works as expected.

How to reproduce

1. Run the DreamMall application locally

Use these commands from our e2e Github workflow:

# in root directory
docker compose up -d --wait database authentik authentik-worker

# in backend directory
cp .env.dist .env && npm install && npm run db:reset && npm run build && npm run start

# in frontend directory
rm env.production && cp .env.dist .env && npm install && npm run prod

# in presenter directory
rm env.production && cp .env.dist .env && export PORT=3001 && npm install && npm run prod

# wait until all blueprints have been digested in Authentik
2. Follow the steps in the recording

https://github.com/user-attachments/assets/32d9a3ff-9c06-4ed5-9228-170b4080f5c4

roschaefer commented 2 months ago

Using the current master I could not reproduce the described problem. On a local Linux machine our Authentik signup flow (dreammallearth-enrollment-email) works as expected.

How to reproduce

1. Run the DreamMall application locally

Use these commands from our e2e Github workflow:

# in root directory
docker compose up -d --wait database authentik authentik-worker

# in backend directory
cp .env.dist .env && npm install && npm run db:reset && npm run build && npm run start

# in frontend directory
rm env.production && cp .env.dist .env && npm install && npm run prod

# in presenter directory
rm env.production && cp .env.dist .env && export PORT=3001 && npm install && npm run prod

# wait until all blueprints have been digested in Authentik
2. Follow the steps in the recording

reproduce_failing_flow_dreammall-enrollment-email.mp4

I can still reproduce the error locally. Shall we pair-program? @mahula

mahula commented 2 months ago

Fixed by #1835