Skip to content

Commit 954b641

Browse files
authored
fixes #2297 Deprecate MrasHandler and SalesforceHandler (#2298)
1 parent 294e892 commit 954b641

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

ingress-proxy/src/main/java/com/networknt/proxy/mras/MrasConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import java.util.*;
1111

12+
@Deprecated
1213
public class MrasConfig {
1314
private static final Logger logger = LoggerFactory.getLogger(MrasConfig.class);
1415
public static final String CONFIG_NAME = "mras";

ingress-proxy/src/main/java/com/networknt/proxy/mras/MrasHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@
5858
* middleware handler. Like the safesforce, we will also invoke the API after the authentication is done in the
5959
* same context.
6060
*
61+
* This handler is replaced with the token-transformer plugin from yaml-rule-plugin project.
62+
*
6163
* @author Steve Hu
6264
*/
65+
@Deprecated
6366
public class MrasHandler implements MiddlewareHandler {
6467
private static final Logger logger = LoggerFactory.getLogger(MrasHandler.class);
6568
private static final String TLS_TRUSTSTORE_ERROR = "ERR10055";

ingress-proxy/src/main/java/com/networknt/proxy/salesforce/SalesforceConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import java.util.List;
1414
import java.util.Map;
1515

16+
@Deprecated
1617
public class SalesforceConfig {
1718
private static final Logger logger = LoggerFactory.getLogger(SalesforceConfig.class);
1819

ingress-proxy/src/main/java/com/networknt/proxy/salesforce/SalesforceHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@
6464
* For the token caching, we only cache the salesforce token. The jwt token we created only last 5 minutes, and it
6565
* is not cached.
6666
*
67+
* This handler is replaced with the token-transformer plugin from yaml-rule-plugin project.
68+
*
6769
* @author Steve Hu
6870
*/
71+
@Deprecated
6972
public class SalesforceHandler implements MiddlewareHandler {
7073
private static final Logger logger = LoggerFactory.getLogger(SalesforceHandler.class);
7174
private static final String TLS_TRUSTSTORE_ERROR = "ERR10055";

0 commit comments

Comments
 (0)