3. Security and Validation

basicAuthentication

Version
Blocks requests which do not have the correct RFC 1945 basic authentication credentials (HTTP header "Authentication: Basic ....").

Can be used in

Syntax

<basicAuthentication>
<user >*
</basicAuthentication>
<basicAuthentication>
   <user >*
</basicAuthentication>

Sample

<serviceProxy>
<basicAuthentication>
<user name="admin" password="adminadmin" />
<user name="guest" password="guestguest" />
</basicAuthentication>
<target host="www.predic8.de" />
</serviceProxy>
<serviceProxy>
  <basicAuthentication>
    <user name="admin" password="adminadmin" />
    <user name="guest" password="guestguest" />
  </basicAuthentication>
  <target host="www.predic8.de" />
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExamples
removeAuthorizationHeaderfalsetrueRemoves the Authorization header after successful authentication.

Default is true to prevent credentials from being forwarded to backends. Set to false if both gateway and backend need to validate credentials.

-

Child Elements

ElementDescriptionCardinality
cachingUserDataProviderCaching User Data provider caches previous successful logins in order to make authentication faster0..1
htpasswdFileProviderA user data provider utilizing htpasswd-style files.0..1
ldapUserDataProviderA user data provider querying an LDAP server to authorize users and retrieve attributes.0..1
staticUserDataProviderA user data provider listing all user data in-place in the config file.0..1
unifyingUserDataProviderExplanation:0..1
user0..*