Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAYARA-2575 Yubikey Integration #2702

Merged
merged 24 commits into from May 29, 2018
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7c403f0
PAYARA-2575 Yubikey integration
MarkWareham Apr 19, 2018
0895cd4
PAYARA-2575-Create-Yubikey-integration
Apr 20, 2018
3b25508
PAYARA-2575 Yubikey Integration
MarkWareham Apr 26, 2018
01244aa
Merge branch 'master' of https://github.com/payara/Payara into Yubikey
MarkWareham Apr 26, 2018
36938ce
PAYARA-2575 Yubikey Integration
MarkWareham Apr 26, 2018
c3c9bcd
PAYARA-2575 Yubikey Integration
MarkWareham Apr 27, 2018
9d142fe
PAYARA-2575 Yubikey Integration
MarkWareham May 2, 2018
d8f6d87
Merge branch 'master' of https://github.com/payara/Payara into Yubikey
MarkWareham May 2, 2018
eb7a99c
PAYARA-2575 Yubikey Integration
MarkWareham May 2, 2018
f11fdde
PAYARA-2575 Yubikey Integration - updated copyrights
MarkWareham May 2, 2018
b81358a
PAYARA-2575 Yubikey Integration - updated copyrights
MarkWareham May 2, 2018
621c006
PAYARA-2575 added Yubikey integration to embedded and web profiles
MarkWareham May 3, 2018
8495492
PAYARA-2575 Yubikey integration. Added to web and embedded.
MarkWareham May 4, 2018
ede597a
PAYARA-2575 Yubikey Integration
MarkWareham May 9, 2018
b3134ea
PAYARA-2575 Yubikey integration. Added request tracing
MarkWareham May 9, 2018
a9b1af2
Merge changes from payara/Payara
MarkWareham May 10, 2018
e80c80f
PAYARA-2575 Yubikey Integration. Added MP-config support
MarkWareham May 14, 2018
50504bf
PAYARA-2575 Yubikey Integration. Added MP-config support
MarkWareham May 14, 2018
3fa422a
PAYARA-2575 Yubikey Integration
MarkWareham May 14, 2018
f22dc5f
Merge branch 'master' into Yubikey
MarkWareham May 22, 2018
fb07158
PAYARA-2575 Yubikey Integration
MarkWareham May 25, 2018
a4d045b
Merge branch 'Yubikey' of github.com:MarkWareham/Payara into Yubikey
MarkWareham May 25, 2018
8092425
Merge payara/Payara master
MarkWareham May 25, 2018
ff62417
PAYARA-2575 Yubikey Integration
MarkWareham May 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -8,6 +8,7 @@ appserver/packager/pkg_conf.py
target/
*~
*.iml
*nbactions.xml
.vscode/
.idea
gfbuild.log
Expand All @@ -22,4 +23,4 @@ nb-configuration.xml
/nucleus/payara-modules/nucleus-microprofile/config-service/nbproject/
appserver/extras/arquillian-containers/payara-common/dependency-reduced-pom.xml
/nucleus/payara-modules/service-exemplar/nbproject/
/nucleus/admin/server-mgmt/nbproject/
/nucleus/admin/server-mgmt/nbproject/
9 changes: 8 additions & 1 deletion appserver/featuresets/payara/pom.xml
Expand Up @@ -40,7 +40,7 @@
holder.

-->
<!-- Portions Copyright [2016] [Payara Foundation] -->
<!-- Portions Copyright [2016-2018] [Payara Foundation] -->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down Expand Up @@ -138,5 +138,12 @@
<version>${project.version}</version>
<type>zip</type>
</dependency>
<!-- Yubikey Authentication -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright needs updating in this file

<dependency>
<groupId>org.glassfish.main.packager</groupId>
<artifactId>yubikey-authentication</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion appserver/featuresets/pom.xml
Expand Up @@ -40,7 +40,7 @@
holder.

-->
<!-- Portions Copyright [2016] [Payara Foundation] -->
<!-- Portions Copyright [2016-2018] [Payara Foundation] -->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down
4 changes: 2 additions & 2 deletions appserver/packager/external/pom.xml
Expand Up @@ -40,7 +40,7 @@
holder.

-->
<!-- Portions Copyright [2017] [Payara Foundation and/or its affiliates] -->
<!-- Portions Copyright [2017-2018] [Payara Foundation and/or its affiliates] -->

<!--
External repackaging modules.
Expand Down Expand Up @@ -69,7 +69,7 @@
<module>ant</module>
<module>javadb</module>
<module>h2db</module>
<module>jmsra</module>
<module>jmsra</module>
<module>jaxr_ra</module>
<module>jcip</module>
<module>libpam4j</module>
Expand Down
1 change: 1 addition & 0 deletions appserver/packager/pom.xml
Expand Up @@ -182,6 +182,7 @@
<module>rest-monitoring</module>
<module>payara-executor-service</module>
<module>cdi-auth-roles</module>
<module>yubikey-authentication</module>
</modules>

<profiles>
Expand Down
137 changes: 137 additions & 0 deletions appserver/packager/yubikey-authentication/pom.xml
@@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

Copyright (c) [2018] Payara Foundation and/or its affiliates. All rights reserved.

The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://github.com/payara/Payara/blob/master/LICENSE.txt
See the License for the specific
language governing permissions and limitations under the License.

When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/legal/LICENSE.txt.

GPL Classpath Exception:
The Payara Foundation designates this particular file as subject to the "Classpath"
exception as provided by the Payara Foundation in the GPL Version 2 section of the License
file that accompanied this code.

Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"

Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.glassfish.main.packager</groupId>
<artifactId>packages</artifactId>
<version>5.182-SNAPSHOT</version>
</parent>
<artifactId>yubikey-authentication</artifactId>
<name>Yubikey Authentication Package</name>
<packaging>distribution-fragment</packaging>
<description>This pom describes how to assemble the Payara Yubikey Authentication package</description>

<properties>
<temp.dir>${project.build.directory}/dependency</temp.dir>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>process-step1</id>
</execution>
<execution>
<id>process-step2</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>process-step3</id>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>ips</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>process-step4</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
<artifactId>glassfishbuild-maven-plugin</artifactId>
<executions>
<execution>
<id>process-step5</id>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>com.yubico</groupId>
<artifactId>yubico-validation-client2</artifactId>
<version>${yubico-validation-client2.version}</version>
</dependency>
<dependency>
<groupId>fish.payara.security</groupId>
<artifactId>yubikey-authentication</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,64 @@
<!--

DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

Copyright (c) [2018] Payara Foundation and/or its affiliates. All rights reserved.

The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://github.com/payara/Payara/blob/master/LICENSE.txt
See the License for the specific
language governing permissions and limitations under the License.

When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/legal/LICENSE.txt.

GPL Classpath Exception:
The Payara Foundation designates this particular file as subject to the "Classpath"
exception as provided by the Payara Foundation in the GPL Version 2 section of the License
file that accompanied this code.

Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"

Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

<id>stage-package</id>
<formats>
<format>dir</format>
</formats>

<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${temp.dir}/nucleus</directory><!--//TODO this wrong -->
<outputDirectory>${install.dir.name}/glassfish</outputDirectory>
</fileSet>
<fileSet>
<directory>${temp.dir}</directory> <!--//TODO this wrong? -->
<excludes>
<exclude>nucleus/**</exclude><!--//TODO this wrong -->
<exclude>pkg_proto.py</exclude>
</excludes>
<outputDirectory>${install.dir.name}</outputDirectory>
</fileSet>
</fileSets>
</assembly>
@@ -0,0 +1,61 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

# Copyright (c) [2018] Payara Foundation and/or its affiliates. All rights reserved.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common Development
# and Distribution License("CDDL") (collectively, the "License"). You
# may not use this file except in compliance with the License. You can
# obtain a copy of the License at
# https://github.com/payara/Payara/blob/master/LICENSE.txt
# See the License for the specific
# language governing permissions and limitations under the License.
#
# When distributing the software, include this License Header Notice in each
# file and include the License file at glassfish/legal/LICENSE.txt.
#
# GPL Classpath Exception:
# The Payara Foundation designates this particular file as subject to the "Classpath"
# exception as provided by the Payara Foundation in the GPL Version 2 section of the License
# file that accompanied this code.
#
# Modifications:
# If applicable, add the following below the License Header, with the fields
# enclosed by brackets [] replaced by your own identifying information:
# "Portions Copyright [year] [name of copyright owner]"
#
# Contributor(s):
# If you wish your version of this file to be governed by only the CDDL or
# only the GPL Version 2, indicate your decision by adding "[Contributor]
# elects to include this software in this distribution under the [CDDL or GPL
# Version 2] license." If you don't indicate a single choice of license, a
# recipient has the option to distribute your version of this file under
# either the CDDL, the GPL Version 2 or to extend the choice of license to
# its licensees as provided above. However, if you add GPL Version 2 code
# and therefore, elected the GPL Version 2 license, then the option applies
# only if the new code is made subject to such option by the copyright
# holder.


import imp

conf = imp.load_source("pkg_conf", "../pkg_conf.py")

pkg = {
"name" : "yubikey-authentication",
"version" : conf.glassfish_version,
"attributes" : {
"pkg.summary" : "yubikey-authentication Integration",
"pkg.description" : "Payara yubikey-authentication modules",
"info.classification" : "OSGi Service Platform Release 4",
},
"dirtrees" : { "glassfish/modules" : {},
},
"licenses" : {
"../../../../ApacheLicense.txt" : {"license" : "ApacheV2"},
}
}

4 changes: 3 additions & 1 deletion appserver/payara-appserver-modules/pom.xml
Expand Up @@ -71,7 +71,8 @@
<module>payara-rest-endpoints</module>
<module>rest-monitoring</module>
<module>cdi-auth-roles</module>
</modules>
<module>yubikey-authentication</module>
</modules>

<profiles>
<profile>
Expand All @@ -86,3 +87,4 @@
</profile>
</profiles>
</project>