Skip to content

Commit

Permalink
Added additional condition for authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwat-egov committed Apr 19, 2024
1 parent fafc4cc commit bff8217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analytics/auth-proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ app.use((req, res, next) => {

logger.info("Received request path - " + req.url);

if(req.originalUrl.includes('kibana/app/kibana')) {
if(req.originalUrl.includes('/app/kibana') && !req.originalUrl.includes('/bundles/')) {
// Check if authToken is empty or null
if (!authToken || authToken.trim() === '') {
res.status(401).send('Unauthorized: No auth token provided');
Expand Down

0 comments on commit bff8217

Please sign in to comment.