Skip to content

Commit

Permalink
Add X509CertificateAuthenticationValve into dropins
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaura committed Jan 4, 2024
1 parent 9b12ea6 commit aa76756
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modules/connectors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,29 @@
</artifactItems>
</configuration>
</execution>
<execution>
<id>download_x509_valve</id>
<phase>compile</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wso2.carbon.extension.identity.x509certificate</groupId>
<artifactId>
org.wso2.carbon.extension.identity.x509Certificate.valve
</artifactId>
<version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${basedir}/target/authenticatorCopied/jar
</outputDirectory>
<includes>**/*.jar</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="{{http_access_log.directory}}"
prefix="{{http_access_log.prefix}}" suffix="{{http_access_log.suffix}}" pattern="{{http_access_log.pattern}}"/>
{% endif %}
<Valve className="org.wso2.carbon.extension.identity.x509Certificate.valve.X509CertificateAuthenticationValve"/>
<Valve className="org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve" threshold="600"/>
<Valve className="org.wso2.carbon.tomcat.ext.valves.CompositeValve"/>

Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1863,6 +1863,11 @@
<artifactId>org.wso2.carbon.extension.identity.x509Certificate.validation.server.feature</artifactId>
<version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.extension.identity.x509certificate</groupId>
<artifactId>org.wso2.carbon.extension.identity.x509Certificate.valve</artifactId>
<version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.conditional.auth.functions</groupId>
<artifactId>org.wso2.carbon.identity.conditional.auth.functions.server.feature</artifactId>
Expand Down

0 comments on commit aa76756

Please sign in to comment.