Skip to content

Commit

Permalink
Fixed application of security constraints to object schema
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Apr 8, 2015
1 parent 53b6dae commit 07e2905
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
35 changes: 35 additions & 0 deletions model/model-intest/src/test/resources/gensync/role-prisoner.xml
@@ -0,0 +1,35 @@
<!--
~ Copyright (c) 2015 Evolveum
~
~ Licensed 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.
-->
<role oid="90c332ec-ddc8-11e4-bb3b-001e8c717e5b"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>Prisoner</name>
<authorization>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action>
<item>c:name</item>
<item>fullName</item>
<item>activation/administrativeStatus</item>
<item>assignment</item>
<item>description</item>
</authorization>
<authorization>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#modify</action>
<item>fullName</item>
<item>additionalName</item>
<item>description</item>
</authorization>
</role>
41 changes: 41 additions & 0 deletions model/model-intest/src/test/resources/gensync/user-otis.xml
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2015 Evolveum
~
~ Licensed 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.
-->
<user oid="fd5039c8-ddc8-11e4-8ec7-001e8c717e5b"
xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
xmlns:c='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
xmlns:t='http://prism.evolveum.com/xml/ns/public/types-3'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:piracy='http://midpoint.evolveum.com/xml/ns/samples/piracy'>
<name>otis</name>
<assignment>
<targetRef oid="90c332ec-ddc8-11e4-bb3b-001e8c717e5b" type="RoleType"/> <!-- Prisoner -->
</assignment>
<activation>
<c:administrativeStatus>enabled</c:administrativeStatus>
</activation>
<!-- No full name -->
<givenName>Otis</givenName>
<employeeType>PIRATE</employeeType>
<credentials>
<password>
<value>
<clearValue>JailT1m3</clearValue>
</value>
</password>
</credentials>
</user>

0 comments on commit 07e2905

Please sign in to comment.