Go to new doc!

+49 228 5552576-0


info@predic8.com

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, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler

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 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