netbirdio / docs

BSD 3-Clause "New" or "Revised" License
11 stars 49 forks source link

Zitadel: http://localhost:3000 is not an allowed redirect URI #243

Open NickBouwhuis opened 1 month ago

NickBouwhuis commented 1 month ago

Hello,

When following the guide at https://docs.netbird.io/selfhosted/identity-providers#zitadel I noticed some key difference from the Zitadel that the getting-started-with-zitadel.sh script sets up.

The guide tells you to add http://localhost:3000 to the redirect URIs list, but this is not allowed on production (non development) mode. Even after turning on development mode this will not work, because http redirect URIs are only allowed with apptype web, not user-agent.

image

image

image

In my opinion, one of these two things needs to happen (ideally both)

NickBouwhuis commented 1 month ago

Decided to edit the script a little to make it use my own Zitadel.

Made the script use variables so its useful to everyone else that wants to do the same. Instructions are in the top comment:

https://gist.github.com/NickBouwhuis/010faad14f84d7740fc2282f04da7f4f