You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2021/07/26 14:21:54 UTC

[GitHub] [knox] smolnar82 commented on a change in pull request #473: KNOX-2534. Allow alias to be used in pac4j topology block

smolnar82 commented on a change in pull request #473:
URL: https://github.com/apache/knox/pull/473#discussion_r676651047



##########
File path: gateway-provider-security-pac4j/src/main/java/org/apache/knox/gateway/pac4j/filter/Pac4jDispatcherFilter.java
##########
@@ -214,6 +214,18 @@ public void init( FilterConfig filterConfig ) throws ServletException {
 
   }
 
+  private String resolveAlias(String clusterName, String key, String value) throws ServletException {
+    if (value.startsWith("${ALIAS=") && value.endsWith("}")) {
+      String alias = value.substring("${ALIAS=".length());

Review comment:
       `String alias = value.substring(8, alias.lenght()-1);`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org