You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using @cl.oauth_callback as described in the docs, CHAINLIT_URL can be set to define the backend's URL - which works as expected. However, the RedirectResponse defined in oauth_callback simply calls url=f"/login?{params}", which means that the callback url wrongly uses the CHAINLIT_URL, and not the frontend's URL that made the request. I can see that it includes a FIXME comment, but in case other matters are more pressing, is there potentially any way to overwrite the implementation? I tried to define the same endpoint in my app.py file, but it still uses the internal function. Currently, I have no way of returning the token to my custom frontend url detached from CHAINLIT_URL. 😃
Thank you in advance 👏
The text was updated successfully, but these errors were encountered:
When using
@cl.oauth_callback
as described in the docs,CHAINLIT_URL
can be set to define the backend's URL - which works as expected. However, theRedirectResponse
defined in oauth_callback simply callsurl=f"/login?{params}"
, which means that the callback url wrongly uses the CHAINLIT_URL, and not the frontend's URL that made the request. I can see that it includes aFIXME
comment, but in case other matters are more pressing, is there potentially any way to overwrite the implementation? I tried to define the same endpoint in myapp.py
file, but it still uses the internal function. Currently, I have no way of returning the token to my custom frontend url detached fromCHAINLIT_URL
. 😃Thank you in advance 👏
The text was updated successfully, but these errors were encountered: