Redirection issue within Iframe after profiling page when i hit start (original) (raw)

Our work:
We are integrating jupyterhub within our angular application using iframe.
Issue:
We changed jupyterhub config with jwt authenticator class (custom class) to enable token based authentication. We use our own service integrated with keycloak identifier to authenticate the users(to identify the users based on the token).
User authentication gets passed and the user lands in the profiling page. All works fine within iframe but when the user click start and observes that a new tab opens with by app host ie. https://host1.com/hub/spawn .
Expectation:
It should be load within the iframe instead of opening new page with jupyterhost url. https://jupyterhub.com/hub/spawn..

P.S any help to resolve the issue is appreciated. If there is any other better way to get our job done, please share those. Happy to hear the solutions.

manics April 30, 2025, 8:44pm 2

Can you turn on debug logging, show us your JupyterHub logs for the whole process starting from login, and also share your web browser network logs? These should show where the incorrect host is coming from.

Do you see the same problem when using the dummy authenticator, or only with your custom one?