Beginning with 2nd June, only the "Single Sign On" option for login to the GitLab web interface will be possible. If you don't have an MPCDF wide second factor so far, please get one at our SelfService (https://selfservice.mpcdf.mpg.de). The GitLab internal second factor will not work.
The launch endpoint should simply be called /launch, right?
Should we return a 301 response for redirect, this fits well with what @himanel1 wants for the UX, or a custom json response with the URL that the client can handle how they like? Or maybe have a parameter to allow the API user to decide?
I would return a custom JSON response with status 200. In the JSON I would put
a status message and the url once it is known. This way we use the HTTP codes kind of right: 200 means that the API handled the request correctly (although the container may not be ready yet), anything else brings up an error in the GUI.
The GUI will then handle the redirecting. 301 would mean permanent redirect which is maybe a bit different...? HTTP codes are such a mess