This is an automated email from the ASF dual-hosted git repository.

lahirujayathilake pushed a commit to branch cybershuttle-staging
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/cybershuttle-staging by this 
push:
     new 852645b3fe disable authz token verification in dev mode
852645b3fe is described below

commit 852645b3fe131d773b14aaa16bbce0d365093a9a
Author: lahiruj <[email protected]>
AuthorDate: Mon Mar 31 12:14:03 2025 -0400

    disable authz token verification in dev mode
---
 .../org/apache/airavata/research/service/config/AuthzTokenFilter.java | 2 ++
 .../research-service/src/main/resources/application.yml               | 4 ++++
 2 files changed, 6 insertions(+)

diff --git 
a/modules/research-framework/research-service/src/main/java/org/apache/airavata/research/service/config/AuthzTokenFilter.java
 
b/modules/research-framework/research-service/src/main/java/org/apache/airavata/research/service/config/AuthzTokenFilter.java
index 30e646a693..a1f46007e2 100644
--- 
a/modules/research-framework/research-service/src/main/java/org/apache/airavata/research/service/config/AuthzTokenFilter.java
+++ 
b/modules/research-framework/research-service/src/main/java/org/apache/airavata/research/service/config/AuthzTokenFilter.java
@@ -29,6 +29,7 @@ import org.apache.airavata.research.service.model.UserContext;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 import org.springframework.stereotype.Component;
 import org.springframework.web.filter.OncePerRequestFilter;
 
@@ -36,6 +37,7 @@ import java.io.IOException;
 import java.util.Map;
 
 @Component
+@ConditionalOnProperty(name = "auth.filter.enabled", havingValue = "true", 
matchIfMissing = true)
 public class AuthzTokenFilter extends OncePerRequestFilter {
 
     private static final Logger LOGGER = 
LoggerFactory.getLogger(AuthzTokenFilter.class);
diff --git 
a/modules/research-framework/research-service/src/main/resources/application.yml
 
b/modules/research-framework/research-service/src/main/resources/application.yml
index f14091bd4e..510373731b 100644
--- 
a/modules/research-framework/research-service/src/main/resources/application.yml
+++ 
b/modules/research-framework/research-service/src/main/resources/application.yml
@@ -10,6 +10,10 @@ cybershuttle:
   hub:
     url: https://hub.dev.cybershuttle.org
 
+auth:
+  filter:
+    enabled: false
+
 spring:
   servlet:
     multipart:

Reply via email to