Hotfix OPDS throwing 403 error

This commit is contained in:
adityachandelgit
2025-05-21 02:48:44 -06:00
committed by Aditya Chandel
parent 7d5533c891
commit 230ff158e9
2 changed files with 2 additions and 1 deletions
@@ -63,7 +63,7 @@ public class DualJwtAuthenticationFilter extends OncePerRequestFilter {
String path = request.getRequestURI(); String path = request.getRequestURI();
if (path.equals("/api/v1/auth/refresh")) { if (path.startsWith("/api/v1/opds/") || path.equals("/api/v1/auth/refresh")) {
chain.doFilter(request, response); chain.doFilter(request, response);
return; return;
} }
@@ -55,6 +55,7 @@ public class SecurityConfig {
).permitAll() ).permitAll()
.anyRequest().authenticated() .anyRequest().authenticated()
) )
.httpBasic(customizer -> customizer.realmName("Booklore OPDS"))
.addFilterBefore(dualJwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class); .addFilterBefore(dualJwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);
return http.build(); return http.build();