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, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler
Syntax
1 2 3 4 | < basicAuthentication > < user >* </ basicAuthentication > |
Listing 1: basicAuthentication Syntax
Sample
1 2 3 4 5 6 7 8 | < 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 | 0..1 | The user data provider verifying a combination of a username with a password. | cachingUserDataProvider, customStatementJdbcUserDataProvider, jdbcUserDataProvider, ldapUserDataProvider, staticUserDataProvider or unifyingUserDataProvider |
2 | 0..* | A list of username/password combinations to accept. | user |