You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2018/12/17 21:04:21 UTC
[isis] 03/04: ISIS-2040: adding new core plugin 'security-pac4j'
(just a stub)
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/isis.git
commit 464d415683829ef0d612e7eb3964e424ada77b76
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Dec 17 11:50:20 2018 +0100
ISIS-2040: adding new core plugin 'security-pac4j' (just a stub)
Task-Url: https://issues.apache.org/jira/browse/ISIS-2040
---
core/plugins/security-pac4j/pom.xml | 152 +++++++++++++++++++++
core/plugins/security-shiro/pom.xml | 4 +-
.../apache/isis/security/shiro/ShiroConstants.java | 3 +-
3 files changed, 156 insertions(+), 3 deletions(-)
diff --git a/core/plugins/security-pac4j/pom.xml b/core/plugins/security-pac4j/pom.xml
new file mode 100644
index 0000000..c939ef3
--- /dev/null
+++ b/core/plugins/security-pac4j/pom.xml
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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="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.apache.isis.core</groupId>
+ <artifactId>isis</artifactId>
+ <version>${revision}</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>isis-core-plugins-security-pac4j</artifactId>
+
+ <name>Apache Isis Plugin for Security (Pac4J)</name>
+ <description>
+ Authentication and Authorization using Pac4J (pac4j.org).
+ </description>
+
+ <properties>
+
+ <pac4j.version>4.0.0-SNAPSHOT</pac4j.version>
+
+ <jar-plugin.automaticModuleName>org.apache.isis.plugins.security-pac4j</jar-plugin.automaticModuleName>
+ <git-plugin.propertiesDir>org/apache/isis/plugins/security-pac4j</git-plugin.propertiesDir>
+ </properties>
+
+ <build>
+ <resources>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ </build>
+
+ <dependencies>
+
+ <!-- compile dependencies -->
+
+ <dependency>
+ <groupId>org.apache.isis.core</groupId>
+ <artifactId>isis-core-commons</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+<!-- <dependency> -->
+<!-- <groupId>org.pac4j</groupId> -->
+<!-- <artifactId>jee-pac4j</artifactId> -->
+<!-- <version>${pac4j.version}</version> -->
+<!-- </dependency> -->
+<!-- <dependency> -->
+<!-- <groupId>org.pac4j</groupId> -->
+<!-- <artifactId>pac4j-oauth</artifactId> -->
+<!-- <version>${pac4j.version}</version> -->
+<!-- </dependency> -->
+<!-- <dependency> -->
+<!-- <groupId>org.pac4j</groupId> -->
+<!-- <artifactId>pac4j-openid</artifactId> -->
+<!-- <version>${pac4j.version}</version> -->
+<!-- </dependency> -->
+<!-- <dependency> -->
+<!-- <groupId>org.pac4j</groupId> -->
+<!-- <artifactId>pac4j-gae</artifactId> -->
+<!-- <version>${pac4j.version}</version> -->
+<!-- </dependency> -->
+ <dependency>
+ <groupId>org.pac4j</groupId>
+ <artifactId>pac4j-oidc</artifactId>
+ <version>${pac4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.pac4j</groupId>
+ <artifactId>pac4j-http</artifactId>
+ <version>${pac4j.version}</version>
+ </dependency>
+
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>flatten</id>
+ <activation>
+ <property>
+ <name>!skip.flatten</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ <version>1.0.0</version>
+ <executions>
+ <execution>
+ <id>flatten</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>flatten</goal>
+ </goals>
+ <configuration>
+ <flattenMode>defaults</flattenMode>
+ <updatePomFile>true</updatePomFile>
+ <pomElements>
+ <name>resolve</name>
+ <description>resolve</description>
+ <dependencies>resolve</dependencies>
+ </pomElements>
+ </configuration>
+ </execution>
+ <execution>
+ <id>flatten.clean</id>
+ <phase>clean</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
diff --git a/core/plugins/security-shiro/pom.xml b/core/plugins/security-shiro/pom.xml
index 1696c01..6f01f1a 100644
--- a/core/plugins/security-shiro/pom.xml
+++ b/core/plugins/security-shiro/pom.xml
@@ -35,8 +35,8 @@
</description>
<properties>
- <jar-plugin.automaticModuleName>org.apache.isis.security.shiro</jar-plugin.automaticModuleName>
- <git-plugin.propertiesDir>org/apache/isis/security/shiro</git-plugin.propertiesDir>
+ <jar-plugin.automaticModuleName>org.apache.isis.plugins.security-shiro</jar-plugin.automaticModuleName>
+ <git-plugin.propertiesDir>org/apache/isis/plugins/security-shiro</git-plugin.propertiesDir>
</properties>
diff --git a/core/plugins/security-shiro/src/main/java/org/apache/isis/security/shiro/ShiroConstants.java b/core/plugins/security-shiro/src/main/java/org/apache/isis/security/shiro/ShiroConstants.java
index 6e487f6..3322b32 100644
--- a/core/plugins/security-shiro/src/main/java/org/apache/isis/security/shiro/ShiroConstants.java
+++ b/core/plugins/security-shiro/src/main/java/org/apache/isis/security/shiro/ShiroConstants.java
@@ -23,7 +23,8 @@ import org.apache.isis.config.ConfigurationConstants;
import org.apache.isis.core.security.authentication.manager.AuthenticationManagerInstaller;
import org.apache.isis.security.shiro.authentication.ShiroAuthenticationManagerInstaller;
-public final class ShiroConstants {
+//not used
+final class ShiroConstants {
public static final String ROOT_AUTHENTICATION = ConfigurationConstants.ROOT + AuthenticationManagerInstaller.TYPE + "." + ShiroAuthenticationManagerInstaller.NAME + ".";