<accessControl file="path" />
The following example shows how to configure access control globally. Every request will be checked against the rules of the access control. The accessControl is placed into the transport of the beans configuration.
<router>
<transport coreThreadPoolSize="20">
<ruleMatching />
<dispatching />
<accessControl file="resources/acl/acl.xml" />
<userFeature />
<httpClient />
</transport>
<serviceProxy>
[...]
</serviceProxy>
</router>
Name | Required | Default | Description | Example |
---|---|---|---|---|
useXForwardedForAsClientAddr | false | false |
whether to use the last value of the last "X-Forwarded-For" header instead of the remote IP address | - |
file | true | - | Location of the ACL file. | acl/acl.xml |