Merge branch 'develop-v1.3.x' into stable-v1.3.x
This commit is contained in:
@@ -22,12 +22,12 @@ import org.springframework.security.config.annotation.authentication.builders.Au
|
|||||||
import org.springframework.security.core.userdetails.UserDetailsService;
|
import org.springframework.security.core.userdetails.UserDetailsService;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.inteligr8.activiti.ActivitiSecurityConfigAdapter;
|
import com.inteligr8.activiti.security.ActivitiSecurityConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean executes the OOTB security configuration without the
|
* This class/bean executes the OOTB security configuration without the
|
||||||
* override, so you can still use its OOTB features. This will allow you to
|
* override, so you can still use its OOTB features. This will allow you to
|
||||||
* enable/disable features, chain them, and uset he OOTB features as a
|
* enable/disable features, chain them, and unset the OOTB features as a
|
||||||
* fallback or failsafe.
|
* fallback or failsafe.
|
||||||
*
|
*
|
||||||
* This class must be in the com.activiti.conf package so it can use protected
|
* This class must be in the com.activiti.conf package so it can use protected
|
||||||
|
@@ -16,6 +16,7 @@ package com.activiti.extension.conf;
|
|||||||
|
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.context.annotation.FullyQualifiedAnnotationBeanNameGenerator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A means for injecting packages to scan for the Spring context.
|
* A means for injecting packages to scan for the Spring context.
|
||||||
@@ -23,7 +24,14 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
* @author brian@inteligr8.com
|
* @author brian@inteligr8.com
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@ComponentScan(basePackages = {"com.inteligr8.activiti"})
|
@ComponentScan(
|
||||||
|
basePackages = {
|
||||||
|
"com.inteligr8.activiti.idm",
|
||||||
|
"com.inteligr8.activiti.keycloak",
|
||||||
|
"com.inteligr8.activiti.security"
|
||||||
|
},
|
||||||
|
nameGenerator = FullyQualifiedAnnotationBeanNameGenerator.class
|
||||||
|
)
|
||||||
public class KeycloakExtSpringComponentScanner {
|
public class KeycloakExtSpringComponentScanner {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -27,7 +27,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import com.activiti.api.msmt.MsmtTenantResolver;
|
import com.activiti.api.msmt.MsmtTenantResolver;
|
||||||
import com.activiti.conf.MsmtProperties;
|
import com.activiti.conf.MsmtProperties;
|
||||||
import com.activiti.security.identity.service.authentication.provider.IdentityServiceAuthenticationProvider;
|
import com.activiti.security.identity.service.authentication.provider.IdentityServiceAuthenticationProvider;
|
||||||
import com.inteligr8.activiti.ActivitiSecurityConfigAdapter;
|
import com.inteligr8.activiti.security.ActivitiSecurityConfigAdapter;
|
||||||
import com.inteligr8.activiti.auth.Authenticator;
|
import com.inteligr8.activiti.auth.Authenticator;
|
||||||
import com.inteligr8.activiti.auth.InterceptingAuthenticationProvider;
|
import com.inteligr8.activiti.auth.InterceptingAuthenticationProvider;
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
||||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package com.inteligr8.activiti;
|
package com.inteligr8.activiti.idm;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -32,6 +32,8 @@ import com.activiti.domain.idm.Group;
|
|||||||
import com.activiti.domain.idm.GroupCapability;
|
import com.activiti.domain.idm.GroupCapability;
|
||||||
import com.activiti.domain.idm.Tenant;
|
import com.activiti.domain.idm.Tenant;
|
||||||
import com.activiti.service.api.GroupService;
|
import com.activiti.service.api.GroupService;
|
||||||
|
import com.inteligr8.activiti.DataFixer;
|
||||||
|
import com.inteligr8.activiti.keycloak.TenantFinderService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean attempts to fix the administrative group in APS. This may
|
* This class/bean attempts to fix the administrative group in APS. This may
|
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
||||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package com.inteligr8.activiti;
|
package com.inteligr8.activiti.idm;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -29,6 +29,8 @@ import com.activiti.domain.idm.Group;
|
|||||||
import com.activiti.domain.idm.User;
|
import com.activiti.domain.idm.User;
|
||||||
import com.activiti.service.api.GroupService;
|
import com.activiti.service.api.GroupService;
|
||||||
import com.activiti.service.api.UserService;
|
import com.activiti.service.api.UserService;
|
||||||
|
import com.inteligr8.activiti.DataFixer;
|
||||||
|
import com.inteligr8.activiti.keycloak.TenantFinderService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean attempts to add administrators to the administrative group
|
* This class/bean attempts to add administrators to the administrative group
|
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
||||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package com.inteligr8.activiti;
|
package com.inteligr8.activiti.idm;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@@ -22,6 +22,8 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
import com.activiti.domain.idm.User;
|
import com.activiti.domain.idm.User;
|
||||||
import com.activiti.service.api.UserService;
|
import com.activiti.service.api.UserService;
|
||||||
|
import com.inteligr8.activiti.DataFixer;
|
||||||
|
import com.inteligr8.activiti.keycloak.TenantFinderService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean attempts to reset the configured user's password.
|
* This class/bean attempts to reset the configured user's password.
|
@@ -41,7 +41,6 @@ import com.activiti.domain.idm.Group;
|
|||||||
import com.activiti.domain.idm.User;
|
import com.activiti.domain.idm.User;
|
||||||
import com.activiti.service.api.GroupService;
|
import com.activiti.service.api.GroupService;
|
||||||
import com.activiti.service.api.UserService;
|
import com.activiti.service.api.UserService;
|
||||||
import com.inteligr8.activiti.TenantFinderService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean implements an Open ID Connect authenticator for Alfresco
|
* This class/bean implements an Open ID Connect authenticator for Alfresco
|
||||||
|
@@ -25,9 +25,9 @@ import org.springframework.security.core.authority.mapping.SimpleAuthorityMapper
|
|||||||
import org.springframework.security.core.userdetails.UserDetailsService;
|
import org.springframework.security.core.userdetails.UserDetailsService;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.inteligr8.activiti.ActivitiSecurityConfigAdapter;
|
|
||||||
import com.inteligr8.activiti.auth.Authenticator;
|
import com.inteligr8.activiti.auth.Authenticator;
|
||||||
import com.inteligr8.activiti.auth.InterceptingAuthenticationProvider;
|
import com.inteligr8.activiti.auth.InterceptingAuthenticationProvider;
|
||||||
|
import com.inteligr8.activiti.security.ActivitiSecurityConfigAdapter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean injects a custom keycloak authentication provider into the
|
* This class/bean injects a custom keycloak authentication provider into the
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
||||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package com.inteligr8.activiti;
|
package com.inteligr8.activiti.keycloak;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
||||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package com.inteligr8.activiti;
|
package com.inteligr8.activiti.security;
|
||||||
|
|
||||||
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
|
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
|
||||||
import org.springframework.security.core.userdetails.UserDetailsService;
|
import org.springframework.security.core.userdetails.UserDetailsService;
|
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
||||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package com.inteligr8.activiti;
|
package com.inteligr8.activiti.security;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -25,6 +25,7 @@ import org.springframework.security.core.userdetails.UserDetailsService;
|
|||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.activiti.api.security.AlfrescoSecurityConfigOverride;
|
import com.activiti.api.security.AlfrescoSecurityConfigOverride;
|
||||||
|
import com.inteligr8.activiti.DataFixer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class/bean overrides the APS security configuration with a collection
|
* This class/bean overrides the APS security configuration with a collection
|
Reference in New Issue
Block a user