How to proxy authorize request from our application to zitadel in OIDC standard implementation ?
Hello, we are making request to zitadel as a GET request to https://xyz.zitadel.cloud/oauth/v2/authorize?client_id=1234@xyz&redirect_uri=http://localhost:3000/redirect&response_type=code&scope=openid%20email%20profile&code_challenge=9az09PjcfuENS7oDK7jUd2xAWRb-B3N7Sr3kDoWECOY&code_challenge_method=S256 with headers x-zitadel-login-client with service user_id and it returns an error {"code": 5, "message": "Not Found"}. Im not sure if missing something over here.
And if possible please share example implementation of custom login with OIDC standard (https://zitadel.com/docs/guides/integrate/login-ui/oidc-standard).
2 Replies
hi @shree_harsha
is it possible that your client does not encode the special characters in the url parameters e.g. client_id=1234@adsf should be client_id=1234%40asdf and also other paramerts like the redirect_uri needs to be encoded
In my local, before validating client_id the request is not happening due to a cors issue. Then I tried the same URL on the browser, which is redirecting to /login?authrequest=<id> and I can cofirm that client_id is properly encode. Does proxy works only when the request comes from https and not on http ?