Unable to login when using SS_USE_BASIC_AUTH

Silverstripe Version: 4.2.1

Question: Unable to login when using SS_USE_BASIC_AUTH

I’m protecting my staging environment using SS_USE_BASIC_AUTH=“ADMIN”. The login screen appears, but I’m not able to login. Username and password are correct. I event tried SS_DEFAULT_ADMIN_USERNAME and SS_DEFAULT_ADMIN_PASSWORD. But also doesn’t work. It works locally though…

Any tips?

Thanks in advance.

– Mario

1 Like

Solved!

I missed to write the line

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

to

public/.htaccess

as mentioned here.

Big thanks to @wmk for helping out.

1 Like