-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #2302 move the unified-config and unified-security from light-r…
…est-4j (#2303)
- Loading branch information
Showing
17 changed files
with
2,129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
87 changes: 87 additions & 0 deletions
87
unified-config/src/main/java/com/networknt/security/UnifiedPathPrefixAuth.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.