Users
Multiple User's on the Profiler
You can set the usernames of each user and their permissions in the config.
my_web_app.py
app.config["flask_profiler"] = {
"basicAuth":{
"enabled": True,
"users": {
"1": {
"username": "admin",
"password": "password",
"role": "admin" # Admin Account
},
"2": {
"username": "user",
"password": "password",
"role": "user" # User Account
}
}
},
}
If you set the role as anything that isnt admin or user, then the profiler will not work.
Set Permissions for each feature
You can set the permissions of each feature, controling what role can view which function.