You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

You can control the access to your interface with authorization policy.

Usage:

<communication>
     <httpInterface authorizationName="checkHttpUserPass" hostname="localhost" port="1655"/>
</communication>

Use an authorization policy by referencing its identifier in interface definition.

We assume that there is an authorization policy named: checkHttpUserPass: 

<security>
       <executableAuthorization name="checkHttpUserPass" serviceName="concatArguments" >
               <parameterMapping >
           <mapRow authParam="username" serviceParam="userid"/>
           <mapRow authParam="password" serviceParam="plain_password"/>
           </parameterMapping>                         
               <expectedResult><text>OK</text></expectedResult>
       </executableAuthorization>       
</security>

We should map username and password fields to 

The username and password parameters are the

<request username="mobileuser" password="ileri">

   <job ....>

     ..

     ..

   </job>

</request>

How it works.

  • No labels