chore: use Grimmory branding for basic auth realms (#2049)

This commit is contained in:
James Ward
2026-07-18 17:25:55 -04:00
committed by GitHub
parent f2b64c1b6e
commit a078fd545a
@@ -89,10 +89,10 @@ public class SecurityConfig {
.anyRequest().authenticated() .anyRequest().authenticated()
) )
.httpBasic(basic -> basic .httpBasic(basic -> basic
.realmName("Booklore OPDS") .realmName("Grimmory OPDS")
.authenticationEntryPoint((request, response, authException) -> { .authenticationEntryPoint((request, response, authException) -> {
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "Basic realm=\"Booklore OPDS\""); response.setHeader("WWW-Authenticate", "Basic realm=\"Grimmory OPDS\"");
response.getWriter().write("HTTP Status 401 - " + authException.getMessage()); response.getWriter().write("HTTP Status 401 - " + authException.getMessage());
}) })
); );
@@ -111,10 +111,10 @@ public class SecurityConfig {
.anyRequest().authenticated() .anyRequest().authenticated()
) )
.httpBasic(basic -> basic .httpBasic(basic -> basic
.realmName("Booklore Komga API") .realmName("Grimmory Komga API")
.authenticationEntryPoint((request, response, authException) -> { .authenticationEntryPoint((request, response, authException) -> {
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate", "Basic realm=\"Booklore Komga API\""); response.setHeader("WWW-Authenticate", "Basic realm=\"Grimmory Komga API\"");
response.getWriter().write("HTTP Status 401 - " + authException.getMessage()); response.getWriter().write("HTTP Status 401 - " + authException.getMessage());
}) })
); );