nxverma commented on a change in pull request #216: KNOX-2149 - 
JWTTokenProvider - JWT verification with OIDC provider by invoking JWKS 
verification url
URL: https://github.com/apache/knox/pull/216#discussion_r357406478
 
 

 ##########
 File path: gateway-util-common/pom.xml
 ##########
 @@ -1,96 +1,123 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more 
contributor 
+       license agreements. See the NOTICE file distributed with this work for 
additional 
+       information regarding copyright ownership. The ASF licenses this file 
to 
+       You under the Apache License, Version 2.0 (the "License"); you may not 
use 
+       this file except in compliance with the License. You may obtain a copy 
of 
+       the License at http://www.apache.org/licenses/LICENSE-2.0 Unless 
required 
+       by applicable law or agreed to in writing, software distributed under 
the 
+       License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
CONDITIONS 
+       OF ANY KIND, either express or implied. See the License for the 
specific 
+       language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.apache.knox</groupId>
+               <artifactId>gateway</artifactId>
+               <version>1.3.0</version>
+       </parent>
 
-      http://www.apache.org/licenses/LICENSE-2.0
+       <artifactId>gateway-util-common</artifactId>
+       <name>gateway-util-common</name>
+       <description>A collection of common utilities.</description>
 
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0";
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>org.apache.knox</groupId>
-        <artifactId>gateway</artifactId>
-        <version>1.4.0-SNAPSHOT</version>
-    </parent>
-    
-    <artifactId>gateway-util-common</artifactId>
-    <name>gateway-util-common</name>
-    <description>A collection of common utilities.</description>
+       <dependencies>
+               <dependency>
+                       <groupId>org.apache.knox</groupId>
+                       <artifactId>gateway-i18n</artifactId>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-core</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-databind</artifactId>
+               </dependency>
+
+               <dependency>
+                       <groupId>commons-codec</groupId>
+                       <artifactId>commons-codec</artifactId>
+               </dependency>
+
+               <dependency>
+                       <groupId>javax.servlet</groupId>
+                       <artifactId>javax.servlet-api</artifactId>
+               </dependency>
 
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.knox</groupId>
-            <artifactId>gateway-i18n</artifactId>
-        </dependency>
+               <dependency>
+                       <groupId>com.sun.activation</groupId>
+                       <artifactId>javax.activation</artifactId>
+               </dependency>
 
-        <dependency>
-            <groupId>com.fasterxml.jackson.core</groupId>
-            <artifactId>jackson-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>com.fasterxml.jackson.core</groupId>
-            <artifactId>jackson-databind</artifactId>
-        </dependency>
-        
-        <dependency>
-            <groupId>commons-codec</groupId>
-            <artifactId>commons-codec</artifactId>
-        </dependency>
+               <dependency>
+                       <groupId>org.apache.directory.server</groupId>
+                       <artifactId>apacheds-jdbm</artifactId>
+               </dependency>
 
-        <dependency>
-            <groupId>org.apache.commons</groupId>
-            <artifactId>commons-lang3</artifactId>
-        </dependency>
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-api</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-log4j12</artifactId>
+               </dependency>
 
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>javax.servlet-api</artifactId>
-        </dependency>
+               <dependency>
+                       <groupId>log4j</groupId>
+                       <artifactId>log4j</artifactId>
+               </dependency>
 
-        <dependency>
-            <groupId>com.sun.activation</groupId>
-            <artifactId>javax.activation</artifactId>
-        </dependency>
+               <!-- ********** ********** ********** ********** ********** 
********** -->
+               <!-- ********** Test Dependencies ********** -->
+               <!-- ********** ********** ********** ********** ********** 
********** -->
 
-        <dependency>
-            <groupId>org.apache.directory.server</groupId>
-            <artifactId>apacheds-jdbm</artifactId>
-        </dependency>
+               <dependency>
+                       <groupId>org.apache.knox</groupId>
+                       <artifactId>gateway-test-utils</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <!-- <dependency> <groupId>com.auth0</groupId> 
<artifactId>jwks-rsa</artifactId> 
 
 Review comment:
   nimbus-jose-jwt doesn't support JWKS Url based keys fetch (Okta server can 
use multiple keys  (randomly pickup one) to generate JWT) . We have to write 
custom code to fetch keys with httpclient url and do caching  of keys to avoid 
performance  and do JWT verifier for each key that provided by  Okta server and 
also need to do invalidating keys in cache .   All these features automatically 
comes with Okta  JWT . Please suggest . 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to