airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r1442331 - in /airavata/trunk/modules/rest/webapp/src/main: resources/credential-store/ webapp/acs/ webapp/credential-store/
Date Mon, 04 Feb 2013 20:24:39 GMT
Author: amilaj
Date: Mon Feb  4 20:24:37 2013
New Revision: 1442331

URL: http://svn.apache.org/viewvc?rev=1442331&view=rev
Log:
Adding client.xml and other acs meta information

Added:
    airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/
    airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/client.xml
    airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-privkey.pk8
    airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-pubkey.pem
    airavata/trunk/modules/rest/webapp/src/main/webapp/acs/index.jsp
    airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/error.jsp
    airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/index.jsp
    airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/show-redirect.jsp
    airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/success.jsp

Added: airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/client.xml
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/client.xml?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/client.xml (added)
+++ airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/client.xml Mon
Feb  4 20:24:37 2013
@@ -0,0 +1,13 @@
+<config>
+    <client name="sample">
+        <id>myproxy:oa4mp,2012:/client/24c45c2eb65d93231d02d423e94d0362</id>
+        <serviceUri>https://portal.xsede.org/oauth</serviceUri>
+        <!--callbackUri>https://156.56.179.104:8443/client/pages/client-success.jsp</callbackUri-->
+        <callbackUri>https://149.160.181.212:8443/airavata-registry/callback</callbackUri>
+        <lifetime>864000</lifetime>
+        <!--publicKeyFile>/Users/thejaka/manager-server/webapps/airavata-registry/WEB-INF/classes/credential-store/oauth-pubkey.pem</publicKeyFile-->
+        <publicKeyFile>../webapps/airavata-registry/WEB-INF/classes/credential-store/oauth-pubkey.pem</publicKeyFile>
+        <!--privateKeyFile>/Users/thejaka/manager-server/webapps/airavata-registry/WEB-INF/classes/credential-store/oauth-privkey.pk8</privateKeyFile-->
+        <privateKeyFile>../webapps/airavata-registry/WEB-INF/classes/credential-store/oauth-privkey.pk8</privateKeyFile>
+    </client>
+</config>

Added: airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-privkey.pk8
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-privkey.pk8?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-privkey.pk8
(added)
+++ airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-privkey.pk8
Mon Feb  4 20:24:37 2013
@@ -0,0 +1,23 @@
+-----BEGIN PRIVATE KEY-----
+OXEMIFAoeSyRbQMDDJ0QzMjRovuz15IaEMpn83p4q7pAwPK7UkK3yO5bWP15qiM2
+daWVJv55AgMBAAECggEAEzcZ5lTvB63lt24tTBqpP1m9bvhjZ1qdgr2jynfRUG6Q
+eYzNyOWaUYH3BLp/OK9TvwZNOimxhjsVDU1euevFE15Gu4Jj8X3S32KYQ9rBBEnV
+yP0FLjaGKFrfd8ufcPJDxT9GxsnJ79zfpKu6xjTlb7MuekjVFVvE6z6nw9QLXYog
+bdjPFgPKWynl5ALNjenZMDFgCSIvdVcjgwdOLpDuPYdfD+JBZVFg+YCXaEQKkpXZ
+AHTuDO4Zq5JuUkHr3I+MwhCvIwgImQ/yfw0Vn+kj+WIrY6lyyO58NmAA7FXefPmC
+B0IKsdWFqXDzJMm15Kn4h4IeudR55UmRSIgk17N60QKBgQDuDlvxHBUUJI/7OkFB
+/bvqF8K+11PUpOIBxhgOw/76tgX4penYGmqVDDpYBO+ae+kKfASQIp91uOJc3JeH
+itm7k6HIzHqSJFSTXkRO3KxHgkyYo8o2IWXWYPhPt93edC3AKqOUMlrNXdyfuAPx
+Nh4xCvhgOZDxrQoNldzzjaHuHQKBgQDYKIcfiQuVsjc4Opu1fn57fagrPUfNOM/p
+u5chh+mOb2GhTzDa0I4OiWz05fSho/uakYgiXE/D0oIe4S9sCTMai+pjtp1jt6sg
+ZO7QLPhj6ct1VF6VYButHOwpKS70MFcdihYOIP49Gonw/P8Xu+HY0Qhc760rjwcI
+ga/4r5zTDQKBgAgERcZd2rvd61dbg90UDWL5v94rZDBSCSZkJGVC5nBM9vCDrddQ
+NGymh8R1DhiWuadXu9OaxuHxAvZ7m0K+Q0zU0OrxL+OCA7MexpAdUFPsKGYvhdzC
+zSomA9aza25VXUEObonMFFC8K3TZfpB98RBXvTuIVMA+worolBNDnsNlAoGBAI4B
+uhvGnfy/czWWk1sd+hxJBiU6AiTZ0QW9/uDBeHfhxqMB8peeceUs9Y7CT/+tSotW
+Vrg0Kxb8Ag4lZFE2jgM/rkHJ5AZx0JPcm2PaV2jUXJz9S5IY7LXDDYdRDg7Qfzrh
+z/GCTWR5Pew7WZ8PCKW3ViYwM3UtZrJ4+NGJFZ81AoGBAIPOt5Ge30dEGLh0UUBg
+y60MUR6jcUDmIl8x88h+O97qMjf5fsVshOR+GhFKSYQdibDo3HO+sRKS6pii9v5e
+IXZD0wUr2HznpGXrAn7CmHEM7ms0TBfy4IOkewrYAhlK/yilfkmjyS8tjLlRB2Kv
+xHv7LOgh04rFHhYdztDWPj3z
+-----END PRIVATE KEY-----

Added: airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-pubkey.pem
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-pubkey.pem?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-pubkey.pem
(added)
+++ airavata/trunk/modules/rest/webapp/src/main/resources/credential-store/oauth-pubkey.pem
Mon Feb  4 20:24:37 2013
@@ -0,0 +1,7 @@
+-----BEGIN PUBLIC KEY-----
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyQHNeLMH6VGTm0/VRRiI
+yuTUt+yw2HocPn860ZTlRyzpB0P11byXzBDT7/HpjJgJIhStVsXiEygQvBpK20Bs
+t5O5H6PKJtqKe03NMAFGTnDq3dFUBOclHhezg5oO2MGICC5TUh06yva5s+VryUcA
+KHkskW0DAwydEMzI0aL7s9eSGhDKZ/N6eKu6QMDyu1JCt8juW1j9eaojNnWllSb+
+eQIDAQAB
+-----END PUBLIC KEY-----

Added: airavata/trunk/modules/rest/webapp/src/main/webapp/acs/index.jsp
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/webapp/acs/index.jsp?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/webapp/acs/index.jsp (added)
+++ airavata/trunk/modules/rest/webapp/src/main/webapp/acs/index.jsp Mon Feb  4 20:24:37 2013
@@ -0,0 +1,14 @@
+<html>
+<body>
+<h2>Sample Portal</h2>
+<p>This demonstrates how portal can use Credential Store to obtain community credentials
...</p>
+<form name="input" action="../credential-store" method="post">
+
+    Gateway Name   : <input type="text" name="gatewayName"><br>
+    Portal Username: <input type="text" name="portalUserName"><br>
+    Contact Email: <input type="text" name="email">
+
+    <input type="submit" value="Submit">
+</form>
+</body>
+</html>

Added: airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/error.jsp
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/error.jsp?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/error.jsp (added)
+++ airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/error.jsp Mon Feb
 4 20:24:37 2013
@@ -0,0 +1,25 @@
+<script type="text/javascript">
+    function getUrlVars() {
+        var vars = {};
+        var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value)
{
+            vars[key] = value;
+        });
+        return vars;
+    }
+
+    var gatewayName = getUrlVars()["gatewayName"];
+    var portalUserName = getUrlVars()["portalUserName"];
+    var lifetime = getUrlVars()["lifetime"];
+
+    alert(gatewayName);
+    alert(portalUserName);
+    alert(lifetime);
+
+
+</script>
+<html>
+<body>
+<h1>Credential Store</h1>
+<p>An error occurred while processing</p>
+</body>
+</html>

Added: airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/index.jsp
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/index.jsp?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/index.jsp (added)
+++ airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/index.jsp Mon Feb
 4 20:24:37 2013
@@ -0,0 +1,14 @@
+<html>
+<body>
+<h2>Sample Portal</h2>
+<p>This demonstrates how portal can use Credential Store to obtain community credentials
...</p>
+<form name="input" action="../airavata-registry-rest-services/credential-store" method="post">
+
+    Gateway Name   : <input type="text" name="gatewayName"><br>
+    Portal Username: <input type="text" name="portalUserName"><br>
+    Contact Email: <input type="text" name="email">
+
+    <input type="submit" value="Submit">
+</form>
+</body>
+</html>

Added: airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/show-redirect.jsp
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/show-redirect.jsp?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/show-redirect.jsp
(added)
+++ airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/show-redirect.jsp
Mon Feb  4 20:24:37 2013
@@ -0,0 +1,20 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head>
+    <script type="text/javascript">
+        <!--
+        function redirect(){
+            window.location = "${redirectUrl}"
+        }
+        //-->
+    </script>
+</head>
+<body onLoad="setTimeout('redirect()', 1000)">
+<h2>You will be now redirect to MyProxy portal !</h2>
+<p>
+    If your browser didn't redirect to MyProxy Portal within 1 minute click following link,
+    <br><br> <a href="${redirectUrl}">${redirectUrl}</a>
+</p>
+
+</body>
+</html>
\ No newline at end of file

Added: airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/success.jsp
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/success.jsp?rev=1442331&view=auto
==============================================================================
--- airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/success.jsp (added)
+++ airavata/trunk/modules/rest/webapp/src/main/webapp/credential-store/success.jsp Mon Feb
 4 20:24:37 2013
@@ -0,0 +1,6 @@
+<html>
+<body>
+<h1>Credential Store</h1>
+<p>Certificate Successfully Stored !</p>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message