Description
Describe the enhancement
Hey, this is an enhancement.
I was looking at the Logout behaviour in the classical notebook because I was surprised by the PR #6087 not having a way to hide it as for the Shut down button. Actually, it will not appear in the menu if the server option quit_button is True. But this is not coherent with the classical notebook.
In the classical notebook, the Login/Logout buttons display depends on logged_in and login_available properties of AuthenticatedHandler.
Those parameters are passed to the jinja template as parameters.
Basically if the user equals "anonymous", those buttons should be hidden. This can be obtain by customizing the login handler class.
Now the question is how to apply a similar behaviour in JupyterLab. I presume the main point is to figure out how to send the information to the frontend through the page_config_data as for the Shut down button.