summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/samples/store-secure/src/main/resources/definitions.xml
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-02-26 04:25:11 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-02-26 04:25:11 +0000
commit313e83d4f0dc58220e31c035e5350beb19139522 (patch)
tree2e791782f071381bf2108570dacc90bfab9b5ef2 /branches/sca-java-1.x/samples/store-secure/src/main/resources/definitions.xml
parent176f6afc0662e66b14e56e7569da47ff3efa843f (diff)
Adding new store-secure sample to exercise security policy in web 2.0 extensions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/samples/store-secure/src/main/resources/definitions.xml53
1 files changed, 53 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/samples/store-secure/src/main/resources/definitions.xml b/branches/sca-java-1.x/samples/store-secure/src/main/resources/definitions.xml
new file mode 100644
index 0000000000..58db5df865
--- /dev/null
+++ b/branches/sca-java-1.x/samples/store-secure/src/main/resources/definitions.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+ xmlns:store="http://store">
+
+
+ <!-- WS Security POLICY SETS -->
+ <sca:policySet name="widgetBindingAuthenticationPolicySet"
+ provides="sca:authentication"
+ appliesTo="tuscany:binding.http">
+ <tuscany:basicAuthentication>
+ <tuscany:authorizedUsers>
+ <tuscany:user name="user1" password="pwd1" role="admin"/>
+ <tuscany:user name="user2" password="pwd2" role="user"/>
+ <tuscany:user name="user3" password="pwd3" role="user"/>
+ </tuscany:authorizedUsers>
+ </tuscany:basicAuthentication>
+ </sca:policySet>
+
+ <!-- WS Security POLICY SETS -->
+ <sca:policySet name="widgetServiceAuthenticationPolicySet"
+ provides="sca:authentication"
+ appliesTo="sca:service">
+ <tuscany:basicAuthentication>
+ <tuscany:authorizedUsers>
+ <tuscany:user name="user1" password="pwd1" role="admin"/>
+ <tuscany:user name="user2" password="pwd2" role="user"/>
+ <tuscany:user name="user3" password="pwd3" role="user"/>
+ </tuscany:authorizedUsers>
+ </tuscany:basicAuthentication>
+ </sca:policySet>
+
+ </sca:definitions>