<html>
<head>
</head>
<body>
<table border='0' cellpadding='3'>
<tr><td>Author: </td><td><b>ifarinic</b></td></tr>
<tr><td>Date:</td><td>2012-01-26 19:06:02 +0100 (Thu, 26 Jan 2012)</td></tr>
<tr><td>New Revision: </td><td>2223</td></tr>
</table>
<hr/><b>Log:</b><div style='padding-left: 20px; color:black'>
In Model WS we are setting spring authentication object before WS method call. The trick is that we are injecting the authentication object after we process the WS-Security header with standard WS Security interceptor.<br/>
Authentication object is required to be able to set Task owner in WS model implementation.<br/>
Authentication object is cleaned up after the WS call finishes.<br/>
Spring Authentication object contains UserType stored in principal property. Password is not stored in Authentication object, because it is not required.<br/>
<br/>
Updated Model WS tests<br/>
Updated Sanity test<br/>
In tests we are setting Spring authentication object directly.<br/>
<br/>
<br/>
</div><hr/>
<b>Added:</b><div style='padding-left: 20px; color:green'>
trunk/model/model-impl/src/main/java/com/evolveum/midpoint/model/security/SpringAuthenticationInjectorInterceptor.java   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/model/model-impl/src/main/java/com/evolveum/midpoint/model/security/SpringAuthenticationInjectorInterceptor.java?r=2223"><see></a><br/>
trunk/model/model-impl/src/main/java/com/evolveum/midpoint/model/security/SpringAuthenticationJanitorInterceptor.java   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/model/model-impl/src/main/java/com/evolveum/midpoint/model/security/SpringAuthenticationJanitorInterceptor.java?r=2223"><see></a><br/>
</div>
<b>Modified:</b><div style='padding-left: 20px; color:blue'>
trunk/model/model-impl/pom.xml   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/model/model-impl/pom.xml?r2=2223&r1=2222"><see></a><br/>
trunk/model/model-impl/src/main/java/com/evolveum/midpoint/model/ModelWebService.java   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/model/model-impl/src/main/java/com/evolveum/midpoint/model/ModelWebService.java?r2=2223&r1=2222"><see></a><br/>
trunk/model/model-impl/src/main/resources/application-context-model.xml   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/model/model-impl/src/main/resources/application-context-model.xml?r2=2223&r1=2222"><see></a><br/>
trunk/model/model-impl/src/test/java/com/evolveum/midpoint/model/ModelWebServiceTest.java   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/model/model-impl/src/test/java/com/evolveum/midpoint/model/ModelWebServiceTest.java?r2=2223&r1=2222"><see></a><br/>
trunk/provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/test/mock/SynchornizationServiceMock.java   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/test/mock/SynchornizationServiceMock.java?r2=2223&r1=2222"><see></a><br/>
trunk/testing/sanity/src/test/java/com/evolveum/midpoint/testing/sanity/TestSanity.java   <a href="http://fisheye.evolveum.com/browse/MidPoint/trunk/testing/sanity/src/test/java/com/evolveum/midpoint/testing/sanity/TestSanity.java?r2=2223&r1=2222"><see></a><br/>
</div>
</body></html>