6. Security

basicAuthentication

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

Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

Syntax

<basicAuthentication>
   <user >*
</basicAuthentication>

Sample

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

Child Elements

ElementsDescriptionCardinality
fileUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
unifyingUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
staticUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
ldapUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
customStatementJdbcUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
jdbcUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
cachingUserDataProvider The user data provider verifying a combination of a username with a password. 0..1
user A list of username/password combinations to accept. 0..*