nlu
nlu12mo ago

Typescript ui - not returning to application

I created a non-default organization and defined a project and application inside. The application is an open source application which supports oauth2 and also works with zitadel, when using the default organization (docassemble). Now I wanted users to be able to register themselves in the non-default organization using the typescript ui as the native zitadel ui does not support this. Registration and logging in to the organization preset in the ui (via environment variables in vercel) worked. Then I wanted the target application to use the ui for logging in to zitadel, so I changed the url in the configuration of this application to use the vercel domain of the ui instead of my zitadel domain. This causes an error in zitadel stating that the domain used by the ui is not trusted. At first I thought I had to add the domain to my organization under "verified domains", but a "trusted domain" can only be added via the API. After doing this with the v1 API, now I am being directed from my app to the ui page, but after logging in, I am not redirected back. Am I missing something or is the typescript ui not supporting this yet? Zitadel has version 2.63.4, the typescript ui is from last week.
3 Replies
fabienne
fabienne12mo ago
@peintnermax can you help here?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
nlu
nluOP12mo ago
The request looks like this: https://vercelhost.verceldomain.tld/oauth/v2/authorize?scope=openid email profile&response_type=code&redirect_uri=https://targetapp.targetdomain.tld/callback/zitadel&code_challenge=xxx&code_challenge_method=S256&client_id=288843767492968452 The redirect_url given works when using Zitadels native ui. Did I misunderstand you? Hi @peintnermax Maybe you could just tell me, if this is supposed to work, so I know the error is probably on my side?

Did you find this page helpful?