bugy / script-server

Web UI for your scripts with execution management
Other
1.52k stars 244 forks source link

Htpasswd OK : admin login KO #681

Closed ludolhoir closed 1 year ago

ludolhoir commented 1 year ago

Hello again, thank again for you help on previous (stupid) issue(!). As you know we( my team) today are using it as kind of global IT Operations tool fr a lot of main needs using lots of scripts. And it is great.

Nevertheless, for better follow up I want to add user/login. So I did some test in lab environment, and I can well log into lab env, but don't have access to admin page. I am probably wrong, but would sincerely appreciate your help on this

{ "title": "IT Ops - LAB",

"auth": { "type": "htpasswd", "htpasswd_path": "/datas/lab/ss/conf/.htpasswd",

"access": { "allowed_users": ["testuser"], "admin_users": ["testuser"] } }

bugy commented 1 year ago

Hi @ludolhoir, "access" section should be on a top level, i.e. not a part of "auth"

ludolhoir commented 1 year ago

works perfectly, again thx, and sorry for your time

bugy commented 1 year ago

No problem :)