hey,
I want to use the ontology-sdk in the vs code inside palanitr (new feature), but when I config the client with the redriectUrl it is not redirect to it, it config well in the Developer Console in the application. I debug the client in the source code (developer tool - f5) and i see the value of the client.auth.options.redirectUrl is https://brick-containers.palantirFoundry … and it not the redirectUrl I put, and because of it it not redirect to my AuthCallback page.
Also I get an Error: code parameter missing in URL.
(the code is working in the vs code outside the Palantir)
I will be glad to get some help please.
Best Regards,
Eyal.
Welcome to the community!
Happy to hear you are using these latest feature! please let us know what you think of them and how we can improve.
To your question, in the VS code window if you click preview, you will see a ? icon (see image here)
By clicking the register workspace
we will register the callback URL in the dev console application so the Auth flow should work.
** PS. we are working on making this more obvious
1 Like
Hey thanks for the response,
I click the register workspace button and still same error.
Best Regards,
Eyal
Have you validated that the values in .env.code-workspaces
are what you expect them to be?
mainly VITE_FOUNDRY_REDIRECT_URL=https://${DEV_SERVER_DOMAIN}${DEV_SERVER_BASE_PATH}/auth/callback