Skip to content

Commit 8014e5b

Browse files
authored
fixes #2302 move the unified-config and unified-security from light-rest-4j (#2303)
1 parent 5e37573 commit 8014e5b

17 files changed

+2129
-0
lines changed

pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@
194194
<module>caffeine-cache</module>
195195
<module>db-provider</module>
196196
<module>proxy-handler</module>
197+
<module>unified-config</module>
198+
<module>unified-security</module>
197199
</modules>
198200

199201
<dependencyManagement>
@@ -590,6 +592,16 @@
590592
<artifactId>proxy-handler</artifactId>
591593
<version>${project.version}</version>
592594
</dependency>
595+
<dependency>
596+
<groupId>com.networknt</groupId>
597+
<artifactId>unified-config</artifactId>
598+
<version>${project.version}</version>
599+
</dependency>
600+
<dependency>
601+
<groupId>com.networknt</groupId>
602+
<artifactId>unified-security</artifactId>
603+
<version>${project.version}</version>
604+
</dependency>
593605
<!-- External dependencies -->
594606

595607
<dependency>

unified-config/pom.xml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!--
2+
~ Copyright (c) 2016 Network New Technologies Inc.
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
18+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<modelVersion>4.0.0</modelVersion>
20+
21+
<parent>
22+
<groupId>com.networknt</groupId>
23+
<artifactId>light-4j</artifactId>
24+
<version>2.1.35-SNAPSHOT</version>
25+
<relativePath>../pom.xml</relativePath>
26+
</parent>
27+
28+
<artifactId>unified-config</artifactId>
29+
<packaging>jar</packaging>
30+
<description>A unified-security config module that is used by the all frameworks</description>
31+
32+
<dependencies>
33+
<dependency>
34+
<groupId>com.networknt</groupId>
35+
<artifactId>config</artifactId>
36+
</dependency>
37+
<dependency>
38+
<groupId>com.networknt</groupId>
39+
<artifactId>security-config</artifactId>
40+
</dependency>
41+
<dependency>
42+
<groupId>com.fasterxml.jackson.core</groupId>
43+
<artifactId>jackson-databind</artifactId>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-api</artifactId>
48+
</dependency>
49+
50+
<dependency>
51+
<groupId>ch.qos.logback</groupId>
52+
<artifactId>logback-classic</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
<dependency>
56+
<groupId>junit</groupId>
57+
<artifactId>junit</artifactId>
58+
<scope>test</scope>
59+
</dependency>
60+
</dependencies>
61+
62+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
package com.networknt.security;
2+
3+
import java.util.List;
4+
5+
public class UnifiedPathPrefixAuth {
6+
String prefix;
7+
boolean basic;
8+
boolean jwt;
9+
boolean sjwt;
10+
boolean swt;
11+
boolean apikey;
12+
List<String> jwkServiceIds;
13+
List<String> sjwkServiceIds;
14+
List<String> swtServiceIds;
15+
16+
public String getPrefix() {
17+
return prefix;
18+
}
19+
20+
public void setPrefix(String prefix) {
21+
this.prefix = prefix;
22+
}
23+
24+
public boolean isBasic() {
25+
return basic;
26+
}
27+
28+
public void setBasic(boolean basic) {
29+
this.basic = basic;
30+
}
31+
32+
public boolean isJwt() {
33+
return jwt;
34+
}
35+
36+
public void setJwt(boolean jwt) {
37+
this.jwt = jwt;
38+
}
39+
40+
public boolean isSjwt() {
41+
return sjwt;
42+
}
43+
44+
public void setSjwt(boolean sjwt) {
45+
this.sjwt = sjwt;
46+
}
47+
48+
public boolean isSwt() {
49+
return swt;
50+
}
51+
52+
public void setSwt(boolean swt) {
53+
this.swt = swt;
54+
}
55+
56+
public boolean isApikey() {
57+
return apikey;
58+
}
59+
60+
public void setApikey(boolean apikey) {
61+
this.apikey = apikey;
62+
}
63+
64+
public List<String> getJwkServiceIds() {
65+
return jwkServiceIds;
66+
}
67+
68+
public void setJwkServiceIds(List<String> jwkServiceIds) {
69+
this.jwkServiceIds = jwkServiceIds;
70+
}
71+
72+
public List<String> getSwtServiceIds() {
73+
return swtServiceIds;
74+
}
75+
76+
public void setSwtServiceIds(List<String> swtServiceIds) {
77+
this.swtServiceIds = swtServiceIds;
78+
}
79+
80+
public List<String> getSjwkServiceIds() {
81+
return sjwkServiceIds;
82+
}
83+
84+
public void setSjwkServiceIds(List<String> sjwkServiceIds) {
85+
this.sjwkServiceIds = sjwkServiceIds;
86+
}
87+
}

0 commit comments

Comments
 (0)