Skip to content

Commit

Permalink
fixes #2302 move the unified-config and unified-security from light-r…
Browse files Browse the repository at this point in the history
…est-4j (#2303)
  • Loading branch information
stevehu authored Jul 30, 2024
1 parent 5e37573 commit 8014e5b
Show file tree
Hide file tree
Showing 17 changed files with 2,129 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@
<module>caffeine-cache</module>
<module>db-provider</module>
<module>proxy-handler</module>
<module>unified-config</module>
<module>unified-security</module>
</modules>

<dependencyManagement>
Expand Down Expand Up @@ -590,6 +592,16 @@
<artifactId>proxy-handler</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>unified-config</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>unified-security</artifactId>
<version>${project.version}</version>
</dependency>
<!-- External dependencies -->

<dependency>
Expand Down
62 changes: 62 additions & 0 deletions unified-config/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!--
~ Copyright (c) 2016 Network New Technologies Inc.
~
~ Licensed 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
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>com.networknt</groupId>
<artifactId>light-4j</artifactId>
<version>2.1.35-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>unified-config</artifactId>
<packaging>jar</packaging>
<description>A unified-security config module that is used by the all frameworks</description>

<dependencies>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>config</artifactId>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>security-config</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
package com.networknt.security;

import java.util.List;

public class UnifiedPathPrefixAuth {
String prefix;
boolean basic;
boolean jwt;
boolean sjwt;
boolean swt;
boolean apikey;
List<String> jwkServiceIds;
List<String> sjwkServiceIds;
List<String> swtServiceIds;

public String getPrefix() {
return prefix;
}

public void setPrefix(String prefix) {
this.prefix = prefix;
}

public boolean isBasic() {
return basic;
}

public void setBasic(boolean basic) {
this.basic = basic;
}

public boolean isJwt() {
return jwt;
}

public void setJwt(boolean jwt) {
this.jwt = jwt;
}

public boolean isSjwt() {
return sjwt;
}

public void setSjwt(boolean sjwt) {
this.sjwt = sjwt;
}

public boolean isSwt() {
return swt;
}

public void setSwt(boolean swt) {
this.swt = swt;
}

public boolean isApikey() {
return apikey;
}

public void setApikey(boolean apikey) {
this.apikey = apikey;
}

public List<String> getJwkServiceIds() {
return jwkServiceIds;
}

public void setJwkServiceIds(List<String> jwkServiceIds) {
this.jwkServiceIds = jwkServiceIds;
}

public List<String> getSwtServiceIds() {
return swtServiceIds;
}

public void setSwtServiceIds(List<String> swtServiceIds) {
this.swtServiceIds = swtServiceIds;
}

public List<String> getSjwkServiceIds() {
return sjwkServiceIds;
}

public void setSjwkServiceIds(List<String> sjwkServiceIds) {
this.sjwkServiceIds = sjwkServiceIds;
}
}
Loading

0 comments on commit 8014e5b

Please sign in to comment.