mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
* Added copying tasks for the authentication endpoint web app, sso-config, identity configs
* Added claim mgt feature * Added relevant configuration files
This commit is contained in:
parent
3017d53432
commit
746e5209df
@ -112,7 +112,7 @@
|
||||
<outputDirectory>wso2mdm-${project.version}/repository/conf</outputDirectory>
|
||||
<includes>
|
||||
<include>**/api-manager.xml</include>
|
||||
<include>**/sso-idp-config.xml</include>
|
||||
<include>**/security/</include>
|
||||
<!-- <include>**/emm-config.xml</include>-->
|
||||
</includes>
|
||||
</fileSet>
|
||||
@ -126,7 +126,15 @@
|
||||
<include>**/trusted-idp-config.xml</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<directory>
|
||||
src/repository/conf/identity/
|
||||
</directory>
|
||||
<outputDirectory>wso2mdm-${project.version}/repository/conf/identity/</outputDirectory>
|
||||
<includes>
|
||||
<include>**/**</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>src/repository/conf/datasources</directory>
|
||||
<outputDirectory>wso2mdm-${project.version}/repository/conf/datasources
|
||||
@ -224,6 +232,16 @@
|
||||
</outputDirectory>
|
||||
<fileMode>755</fileMode>
|
||||
</fileSet>
|
||||
<!-- Copying Authentication Endpoint webapp -->
|
||||
<fileSet>
|
||||
<directory>
|
||||
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
|
||||
</directory>
|
||||
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
|
||||
<includes>
|
||||
<include>authenticationendpoint.war</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
<!-- Copying API Manager Publisher and Store Jaggery apps -->
|
||||
<fileSet>
|
||||
@ -280,6 +298,7 @@
|
||||
</outputDirectory>
|
||||
<fileMode>755</fileMode>
|
||||
</file>
|
||||
|
||||
<!-- <file>
|
||||
<source>
|
||||
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading.xml
|
||||
@ -377,6 +396,7 @@
|
||||
<fileMode>644</fileMode>
|
||||
</file>
|
||||
|
||||
|
||||
<!-- Copying thrift-authentication.xml -->
|
||||
<file>
|
||||
<source>
|
||||
@ -416,6 +436,11 @@
|
||||
<outputDirectory>wso2mdm-${project.version}/repository/conf</outputDirectory>
|
||||
<fileMode>644</fileMode>
|
||||
</file>
|
||||
<file>
|
||||
<source>src/repository/conf/security/sso-idp-config.xml</source>
|
||||
<outputDirectory>wso2mdm-${project.version}/repository/conf/security</outputDirectory>
|
||||
<fileMode>644</fileMode>
|
||||
</file>
|
||||
|
||||
<file>
|
||||
<source>
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
<IdentityProvider>
|
||||
<IdentityProviderName>default</IdentityProviderName>
|
||||
<DisplayName>default</DisplayName>
|
||||
<IdentityProviderDescription></IdentityProviderDescription>
|
||||
<Alias></Alias>
|
||||
<IsPrimary></IsPrimary>
|
||||
<IsFederationHub></IsFederationHub>
|
||||
<HomeRealmId></HomeRealmId>
|
||||
<ProvisioningRole></ProvisioningRole>
|
||||
<FederatedAuthenticatorConfigs></FederatedAuthenticatorConfigs>
|
||||
<DefaultAuthenticatorConfig>
|
||||
</DefaultAuthenticatorConfig>
|
||||
<ProvisioningConnectorConfigs>
|
||||
<ProvisioningConnectorConfig>
|
||||
<ProvisioningProperties>
|
||||
</ProvisioningProperties>
|
||||
</ProvisioningConnectorConfig>
|
||||
</ProvisioningConnectorConfigs>
|
||||
<DefaultProvisioningConnectorConfig></DefaultProvisioningConnectorConfig>
|
||||
<ClaimConfig></ClaimConfig>
|
||||
<Certificate></Certificate>
|
||||
<PermissionAndRoleConfig></PermissionAndRoleConfig>
|
||||
<JustInTimeProvisioningConfig></JustInTimeProvisioningConfig>
|
||||
</IdentityProvider>
|
||||
@ -0,0 +1,49 @@
|
||||
<ServiceProvider>
|
||||
<ApplicationID>1</ApplicationID>
|
||||
<ApplicationName>default</ApplicationName>
|
||||
<Description>Default Service Provider</Description>
|
||||
<InboundAuthenticationConfig>
|
||||
<InboundAuthenticationRequestConfigs>
|
||||
<InboundAuthenticationRequestConfig>
|
||||
<InboundAuthKey>default</InboundAuthKey>
|
||||
<InboundAuthType></InboundAuthType>
|
||||
<Properties></Properties>
|
||||
</InboundAuthenticationRequestConfig>
|
||||
</InboundAuthenticationRequestConfigs>
|
||||
</InboundAuthenticationConfig>
|
||||
<LocalAndOutBoundAuthenticationConfig>
|
||||
<AuthenticationSteps>
|
||||
<AuthenticationStep>
|
||||
<StepOrder>1</StepOrder>
|
||||
<LocalAuthenticatorConfigs>
|
||||
<LocalAuthenticatorConfig>
|
||||
<Name>BasicAuthenticator</Name>
|
||||
<DisplayName>basicauth</DisplayName>
|
||||
<IsEnabled>true</IsEnabled>
|
||||
</LocalAuthenticatorConfig>
|
||||
</LocalAuthenticatorConfigs>
|
||||
<!-- FederatedIdentityProviders>
|
||||
<IdentityProvider>
|
||||
<IdentityProviderName>facebook</IdentityProviderName>
|
||||
<IsEnabled>true</IsEnabled>
|
||||
<DefaultAuthenticatorConfig>
|
||||
<FederatedAuthenticatorConfig>
|
||||
<Name>FacebookAuthenticator</Name>
|
||||
<IsEnabled>true</IsEnabled>
|
||||
</FederatedAuthenticatorConfig>
|
||||
</DefaultAuthenticatorConfig>
|
||||
</IdentityProvider>
|
||||
</FederatedIdentityProviders -->
|
||||
<SubjectStep>true</SubjectStep>
|
||||
<AttributeStep>true</AttributeStep>
|
||||
</AuthenticationStep>
|
||||
</AuthenticationSteps>
|
||||
</LocalAndOutBoundAuthenticationConfig>
|
||||
<RequestPathAuthenticatorConfigs></RequestPathAuthenticatorConfigs>
|
||||
<InboundProvisioningConfig></InboundProvisioningConfig>
|
||||
<OutboundProvisioningConfig></OutboundProvisioningConfig>
|
||||
<ClaimConfig>
|
||||
<AlwaysSendMappedLocalSubjectId>true</AlwaysSendMappedLocalSubjectId>
|
||||
</ClaimConfig>
|
||||
<PermissionAndRoleConfig></PermissionAndRoleConfig>
|
||||
</ServiceProvider>
|
||||
@ -0,0 +1,49 @@
|
||||
<ServiceProvider>
|
||||
<ApplicationID>2</ApplicationID>
|
||||
<ApplicationName>wso2_cdm</ApplicationName>
|
||||
<Description>CDM</Description>
|
||||
<InboundAuthenticationConfig>
|
||||
<InboundAuthenticationRequestConfigs>
|
||||
<InboundAuthenticationRequestConfig>
|
||||
<InboundAuthKey>cdm</InboundAuthKey>
|
||||
<InboundAuthType>samlsso</InboundAuthType>
|
||||
<Properties></Properties>
|
||||
</InboundAuthenticationRequestConfig>
|
||||
</InboundAuthenticationRequestConfigs>
|
||||
</InboundAuthenticationConfig>
|
||||
<LocalAndOutBoundAuthenticationConfig>
|
||||
<AuthenticationSteps>
|
||||
<AuthenticationStep>
|
||||
<StepOrder>1</StepOrder>
|
||||
<LocalAuthenticatorConfigs>
|
||||
<LocalAuthenticatorConfig>
|
||||
<Name>BasicAuthenticator</Name>
|
||||
<DisplayName>basicauth</DisplayName>
|
||||
<IsEnabled>true</IsEnabled>
|
||||
</LocalAuthenticatorConfig>
|
||||
</LocalAuthenticatorConfigs>
|
||||
<!-- FederatedIdentityProviders>
|
||||
<IdentityProvider>
|
||||
<IdentityProviderName>facebook</IdentityProviderName>
|
||||
<IsEnabled>true</IsEnabled>
|
||||
<DefaultAuthenticatorConfig>
|
||||
<FederatedAuthenticatorConfig>
|
||||
<Name>FacebookAuthenticator</Name>
|
||||
<IsEnabled>true</IsEnabled>
|
||||
</FederatedAuthenticatorConfig>
|
||||
</DefaultAuthenticatorConfig>
|
||||
</IdentityProvider>
|
||||
</FederatedIdentityProviders -->
|
||||
<SubjectStep>true</SubjectStep>
|
||||
<AttributeStep>true</AttributeStep>
|
||||
</AuthenticationStep>
|
||||
</AuthenticationSteps>
|
||||
</LocalAndOutBoundAuthenticationConfig>
|
||||
<RequestPathAuthenticatorConfigs></RequestPathAuthenticatorConfigs>
|
||||
<InboundProvisioningConfig></InboundProvisioningConfig>
|
||||
<OutboundProvisioningConfig></OutboundProvisioningConfig>
|
||||
<ClaimConfig>
|
||||
<AlwaysSendMappedLocalSubjectId>true</AlwaysSendMappedLocalSubjectId>
|
||||
</ClaimConfig>
|
||||
<PermissionAndRoleConfig></PermissionAndRoleConfig>
|
||||
</ServiceProvider>
|
||||
49
product/modules/distribution/src/repository/conf/security/sso-idp-config.xml
Executable file
49
product/modules/distribution/src/repository/conf/security/sso-idp-config.xml
Executable file
@ -0,0 +1,49 @@
|
||||
<!--
|
||||
~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ WSO2 Inc. 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.
|
||||
-->
|
||||
<SSOIdentityProviderConfig>
|
||||
<TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
|
||||
<!-- <ServiceProviders>
|
||||
<ServiceProvider>
|
||||
<Issuer>cdm</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/cdm/acs</AssertionConsumerService>
|
||||
<SignResponse>true</SignResponse>
|
||||
<CustomLoginPage>/cdm/login</CustomLoginPage>
|
||||
</ServiceProvider>
|
||||
</ServiceProviders> -->
|
||||
<ServiceProviders>
|
||||
<ServiceProvider>
|
||||
<Issuer>cdm</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/cdm/acs</AssertionConsumerService>
|
||||
<SignAssertion>true</SignAssertion>
|
||||
<SignResponse>true</SignResponse>
|
||||
<EnableAttributeProfile>false</EnableAttributeProfile>
|
||||
<IncludeAttributeByDefault>false</IncludeAttributeByDefault>
|
||||
<Claims>
|
||||
<Claim>http://wso2.org/claims/role</Claim>
|
||||
<Claim>http://wso2.org/claims/emailaddress</Claim>
|
||||
</Claims>
|
||||
<EnableSingleLogout>false</EnableSingleLogout>
|
||||
<SingleLogoutUrl></SingleLogoutUrl>
|
||||
<EnableAudienceRestriction>true</EnableAudienceRestriction>
|
||||
<AudiencesList>
|
||||
<Audience>carbonServer</Audience>
|
||||
</AudiencesList>
|
||||
<ConsumingServiceIndex></ConsumingServiceIndex>
|
||||
</ServiceProvider>
|
||||
</ServiceProviders>
|
||||
</SSOIdentityProviderConfig>
|
||||
@ -1,52 +0,0 @@
|
||||
<!--
|
||||
~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||
~
|
||||
~ WSO2 Inc. 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.
|
||||
-->
|
||||
<SSOIdentityProviderConfig>
|
||||
<TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
|
||||
<ServiceProviders>
|
||||
<ServiceProvider>
|
||||
<Issuer>store</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/store/acs</AssertionConsumerService>
|
||||
<SignResponse>true</SignResponse>
|
||||
<CustomLoginPage>/store/login.jag</CustomLoginPage>
|
||||
</ServiceProvider>
|
||||
<ServiceProvider>
|
||||
<Issuer>social</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/social/acs</AssertionConsumerService>
|
||||
<SignResponse>true</SignResponse>
|
||||
<CustomLoginPage>/social/login</CustomLoginPage>
|
||||
</ServiceProvider>
|
||||
<ServiceProvider>
|
||||
<Issuer>publisher</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/publisher/acs</AssertionConsumerService>
|
||||
<SignResponse>true</SignResponse>
|
||||
<CustomLoginPage>/publisher/controllers/login.jag</CustomLoginPage>
|
||||
</ServiceProvider>
|
||||
<ServiceProvider>
|
||||
<Issuer>emm</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/emm/acs</AssertionConsumerService>
|
||||
<SignResponse>true</SignResponse>
|
||||
<CustomLoginPage>/emm/login</CustomLoginPage>
|
||||
</ServiceProvider>
|
||||
<ServiceProvider>
|
||||
<Issuer>mam</Issuer>
|
||||
<AssertionConsumerService>https://localhost:9443/mam/acs</AssertionConsumerService>
|
||||
<SignResponse>true</SignResponse>
|
||||
<CustomLoginPage>/mam/login</CustomLoginPage>
|
||||
</ServiceProvider>
|
||||
</ServiceProviders>
|
||||
</SSOIdentityProviderConfig>
|
||||
@ -305,6 +305,9 @@
|
||||
<featureArtifactDef>
|
||||
org.wso2.carbon:org.wso2.carbon.identity.mgt.feature:${carbon.platform.version}
|
||||
</featureArtifactDef>
|
||||
<featureArtifactDef>
|
||||
org.wso2.carbon:org.wso2.carbon.claim.mgt.server.feature:${carbon.platform.version}
|
||||
</featureArtifactDef>
|
||||
<!-- End of SSO Fixes -->
|
||||
|
||||
</featureArtifacts>
|
||||
@ -586,7 +589,10 @@
|
||||
<id>org.wso2.carbon.identity.mgt.feature.group</id>
|
||||
<version>${carbon.platform.version}</version>
|
||||
</feature>
|
||||
|
||||
<feature>
|
||||
<id>org.wso2.carbon.claim.mgt.server.feature.group</id>
|
||||
<version>${carbon.platform.version}</version>
|
||||
</feature>
|
||||
<!--SSO FIX OVER-->
|
||||
|
||||
</features>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user