Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8DBA19714 for ; Fri, 4 Mar 2016 20:41:00 +0000 (UTC) Received: (qmail 56487 invoked by uid 500); 4 Mar 2016 20:41:00 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 56446 invoked by uid 500); 4 Mar 2016 20:41:00 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 56437 invoked by uid 99); 4 Mar 2016 20:41:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2016 20:41:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 502C1E7888; Fri, 4 Mar 2016 20:41:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: eroma@apache.org To: commits@airavata.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: airavata-docs git commit: Adding WSO2 IS installation Steps Date: Fri, 4 Mar 2016 20:41:00 +0000 (UTC) Repository: airavata-docs Updated Branches: refs/heads/master b251db615 -> 94484680b Adding WSO2 IS installation Steps Project: http://git-wip-us.apache.org/repos/asf/airavata-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-docs/commit/94484680 Tree: http://git-wip-us.apache.org/repos/asf/airavata-docs/tree/94484680 Diff: http://git-wip-us.apache.org/repos/asf/airavata-docs/diff/94484680 Branch: refs/heads/master Commit: 94484680b9c095316313bf457785400e9d6904c2 Parents: b251db6 Author: Eroma Abeysinghe Authored: Fri Mar 4 15:40:56 2016 -0500 Committer: Eroma Abeysinghe Committed: Fri Mar 4 15:40:56 2016 -0500 ---------------------------------------------------------------------- Own-WSO2-IS-Configuration.md | 71 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-docs/blob/94484680/Own-WSO2-IS-Configuration.md ---------------------------------------------------------------------- diff --git a/Own-WSO2-IS-Configuration.md b/Own-WSO2-IS-Configuration.md new file mode 100644 index 0000000..ecd442a --- /dev/null +++ b/Own-WSO2-IS-Configuration.md @@ -0,0 +1,71 @@ +## WSO2 IS Installation +### Installation +1. Download IS 5.1.0 from WSO2 Site and extract it. +2. Open <IS_HOME>/repository/conf/carbon.xml and set the HideAdminServiceWSDLs property to false. +
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
+3. To enable self signup and account confirmation follow the below steps + - Open <IS_HOME>/repository/conf/claim-mgt.xml and add the following claims mappings in the <Dialect dialectURI="http://wso2.org/claims"> section +
<Claim>
+          <ClaimURI>http://wso2.org/claims/identity/accountLocked</ClaimURI>
+          <DisplayName>Account Locked</DisplayName>
+          <AttributeID>accountLock</AttributeID>
+          <Description>Account Locked</Description>
+</Claim>
+<Claim>
+          <ClaimURI>http://wso2.org/claims/identity/passwordTimestamp</ClaimURI>
+          <DisplayName>Password Timestamp</DisplayName>
+          <AttributeID>facsimileTelephoneNumber</AttributeID>
+          <Description>Password Timestamp</Description>
+</Claim>
+<Claim>
+          <ClaimURI>http://wso2.org/claims/username</ClaimURI>
+          <DisplayName>Username</DisplayName>
+          <AttributeID>uid</AttributeID>
+          <Description>Username</Description>
+</Claim>
+<Claim>
+          <ClaimURI>roles</ClaimURI>
+          <DisplayName>Roles</DisplayName>
+          <AttributeID>role</AttributeID>
+          <Description>Roles</Description>
+</Claim>
+
+
+ + - Enable the Identity Listener by setting the following property to true in the <IS_HOME>/repository/conf/identity/identity.xml file. +
<EventListener type="org.wso2.carbon.user.core.listener.UserOperationEventListener" name="org.wso2.carbon.identity.mgt.IdentityMgtEventListener" orderId="50" enable="true"/<
+ + - Do the following configurations in the <IS_HOME>/repository/conf/identity/identity­-mgt.properties file. +

+Notification.Sending.Internally.Managed=true
+Authentication.Policy.Account.Lock.On.Creation=true
+Notification.Expire.Time=7200
+Notification.Sending.Enable=true
+Authentication.Policy.Enable=true
+
+ + - Configure the email-admin-config.xml file found in <IS_HOME>/repository/conf/email/ with the email template of type “accountConfirmation”. + + - Edit the org.apache.axis2.transport.mail.MailTransportSender section in the <IS_HOME>/repository/conf/axis2/axis2.xml to valid email account configuration. +
IS server should have access to this email account for remotely login. +

+<transportSender name="mailto"class="org.apache.axis2.transport.mail.MailTransportSender">
+        <parameter name="mail.smtp.from">wso2demomail@gmail.com</parameter>
+        <parameter name="mail.smtp.user">wso2demomail</parameter>
+        <parameter name="mail.smtp.password">mailpassword</parameter>
+        <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
+        <parameter name="mail.smtp.port">587</parameter>
+        <parameter name="mail.smtp.starttls.enable">true</parameter>
+        <parameter name="mail.smtp.auth">true</parameter>
+</transportSender>
+
+ +4. Go to <IS_HOME>/bin and start IS server using ./wso2server.sh (use ./wso2server.sh start for starting in daemon mode). + +### WSO2 IS Configuration +1. Creating a new tenant. +2. Registering a new OAuth Service Provider. + +### Optional Steps +1. How to configure a mysql backend database for wso2 IS server - MySQL DB Configuration +2. How to configure a valid server certificate for the wso2 IS server - Configure Server Certificate