Hotfix OPDS throwing 403 error
This commit is contained in:
committed by
Aditya Chandel
parent
7d5533c891
commit
230ff158e9
+1
-1
@@ -63,7 +63,7 @@ public class DualJwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
||||
+1
@@ -55,6 +55,7 @@ public class SecurityConfig {
|
||||
).permitAll()
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
.httpBasic(customizer -> customizer.realmName("Booklore OPDS"))
|
||||
.addFilterBefore(dualJwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
return http.build();
|
||||
|
||||
Reference in New Issue
Block a user