lmenezes / cerebro

MIT License
5.55k stars 716 forks source link

How can I totally disable auth? #553

Closed movsb closed 2 years ago

movsb commented 2 years ago

Hi, my Cerebro is behind a proxy and is secured by a gateway. So I want to totally disable the default Cerebro auth (by default either LDAP or Basic) and use the common auth provided by the gateway. I've tried to set auth to Basic type and leave the username and password empty, but it still asks me to input a username and password.

I tried to post the username and password as form-data to /auth/login, it seemed to work. But it's kind of tricky.

Thank you.

tommygarvin commented 2 years ago

Hi, @movsb . You should be able to achieve what you're looking for by leaving application.conf authentication section as-is and not configuring either basic or ldap.

movsb commented 2 years ago

@tommygarvin Oops! Works as expected, thank you so much. 😅

Maybe the comment of auth.type in the application.conf should be updated.