-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Only allow certain users to see Admin panel #5370
Comments
+1 |
There was a recent PR #5386 that merged user based path authentication. I see a way to use this feature with a new command line argument that was suggested by @MarcSkovMadsen here #3179 (comment) for giving the admin page a different name. I propose adding a new command line argument e.g. |
I have a work-in-progress (#5447) that adds a new command line flag named panel serve app1.py app2.py \
--basic-auth credentials.json \
--cookie-secret my_super_safe_cookie_secret \
--admin \
--admin-panel-name="/zort-troz" The videos below show that both the I will move any comments/updates to that PR in the future. admin admin-page access using the new
|
Is your feature request related to a problem? Please describe.
I have a user facing app. With Okta as my Oauth provider. The admin panel is very useful but I would like only the devs to be able to access it. As it stands anyone can accidentally stumble into the /admin endpoint
Describe the solution you'd like
I may be well off the mark here but my initial thoughts would be if the admin panel could be a pane perhaps? Then the logic of the code could hide it or show it based on the user info from theauthentication provider
Describe alternatives you've considered
Only alternative I have is to use the debugger inside the app and have that available to only certain users. But would love all the other features of the admin panel aswell
Additional context
This was just a rough thought. If this is not even possible I am happy to be told so. I do plan to build my own metrics and the like in the future. But I like the functionality of the admin panel as is.
The text was updated successfully, but these errors were encountered: