basicAuthentication
Description
Blocks requests which do not have the correct RFC 1945 basic authentication credentials (HTTP header "Authentication: Basic ....").
Can be used in
spring:beans, if, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport
Syntax
<basicAuthentication> <user >* </basicAuthentication>
Listing 1: basicAuthentication Syntax
Sample
<serviceProxy> <basicAuthentication> <user name="admin" password="adminadmin" /> <user name="guest" password="guestguest" /> </basicAuthentication> <target host="www.predic8.de" /> </serviceProxy>
Listing 2: basicAuthentication Example
Child Elements
Position | Cardinality | Description | Element |
---|---|---|---|
1 | 1..* | A list of username/password combinations to accept. | user |