-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect Hub vs Binder in launch button #507
Comments
The canonical relative URLs that indicate a Hub vs Binder are:
Iff. a Hub and BinderHub deployment share the same handler namespace, we should treat the result as a BinderHub. |
This necessitates jupyterhub/jupyterhub#4966 |
@agoose77 yes that The way around that for non static sites is to expose a new route that can take the request server-side, but that doesn't help at all for static deployments. There are no other get requests at all that allow a binderhub to be differentiated from a jupyterhub? mind you isn't having the explicit type set in |
@stevejpurves I don't think it's an anti-pattern: the reason that this header was designed is to make cross-origin requests possible. In this case, I think we should support cross-origin requests. For static sites we can also just use a CORS proxy, but these are not great for a variety of reasons.
Not in the default config. That said, I'm not sure how Thebe is able to get around that, but I haven't looked too carefully -- probably a per-hub opt-in? |
let me re-phase that - I don't think jupyterhub adding |
@stevejpurves My proposal is to add it to the unauthenticated routes like |
I don't think we should override admin's preferences for which external sites can interact with their hub, even for unauthenticated endpoints. |
@manics how strict are your feelings on this? For example, is Furthermore, I want to clarify my intentions -- we should not be overriding preferences, only setting new defaults; If admins want to turn this of, they certainly should be able to. |
The issue with the current approach is that in-practice it means that most hubs don't support even the simplest interrogation of "what are you?". It's hard to author a useful feature if by-default it is broken out of the box.
This is about bring-your-own-hub, whereby we don't know what the service is until the user provides it. |
We can programmatically detect the presence of a Hub vs Binder from querying the 1:1 API endpoints in the given URL.
The text was updated successfully, but these errors were encountered: