fix(admin): use getRequestUri().getPath() in auth filter to avoid //login double-slash
Deploy to Production / deploy (push) Successful in 3m13s
Deploy to Production / deploy (push) Successful in 3m13s
Co-Authored-By: Mira Rehfeld <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@ public class AdminAuthFilter implements ContainerRequestFilter {
|
|||||||
@Override
|
@Override
|
||||||
public void filter(ContainerRequestContext ctx) throws IOException {
|
public void filter(ContainerRequestContext ctx) throws IOException {
|
||||||
UriInfo uri = ctx.getUriInfo();
|
UriInfo uri = ctx.getUriInfo();
|
||||||
String path = "/" + uri.getPath();
|
String path = uri.getRequestUri().getPath();
|
||||||
|
|
||||||
for (String pub : PUBLIC_PATHS) {
|
for (String pub : PUBLIC_PATHS) {
|
||||||
if (path.startsWith(pub)) return;
|
if (path.startsWith(pub)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user