ivanursul

Software engineer

Spring Security: Avoiding Basic Authentication window in your browser

While tunnning your Spring application with Basic Authentication security you can notice that you are receiving Basic Aithentication window in your browser.

The problem is with BasicAuthenticationEntryPoint that sends header WWW-Authenticate: Basic realm="nmrs_m7VKmomQ2YM3:"

So, if you don’t want to receive this window in your browser, just create Custom Entry Point: