Go to new doc!

+49 228 5552576-0


info@predic8.com

staticUserDataProvider

Description

A user data provider listing all user data in-place in the config file.

Can be used in

spring:beans, basicAuthentication, cachingUserDataProvider, login, oauth2authserver, unifyingUserDataProvider and xenAuthentication

Syntax

				<staticUserDataProvider>
					<user username="string"
						[password="..."]
						[sms="phone number"]
						[secret=""]
						...="..." />*
				</staticUserDataProvider>
			
Listing 1: staticUserDataProvider Syntax

Sample

				<staticUserDataProvider>
					<user username="thomas"
						password="secret"
						sms="+1-234-567-8900" />
					<user username="tobias"
						password="secret"
						sms="+1-234-567-8901" />
				</staticUserDataProvider>
			
Listing 2: staticUserDataProvider Example

Explanation

the staticuserdataprovider can be used to statically list user data within the config file.

each user must have a unique username attribute as well as a password attribute.

arbitrary attributes can be set on a user element. other sub-components of the login interceptor might use those: for example, the telekomsmstokenprovider uses the sms property as the user's cell phone number. for example, the totptokenprovider uses the secret property to initialize the token sequence.

Child Elements

Position Cardinality Description Element
1 0..* user