staticUserDataProvider

Version

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

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.

Supported hash formats are crypt(3)-style hashes ($<id>$<salt>$<hash>, optionally including rounds=<n>), bcrypt hashes ($2a$, $2b$, $2y$) and argon2id hashes ($argon2id$) with the strict format ($argon2id$v=19$m=65536,t=3,p=1$...$..., numbers may vary). The Apache $apr1$... format is not supported.


Syntax

staticUserDataProvider:
users:
- <staticUserDataProvider-user>
staticUserDataProvider:
  users:
    - <staticUserDataProvider-user>

Sample

<staticUserDataProvider>
<user username="thomas"
password="secret"
sms="+1-234-567-8900" />

<user username="tobias"
password="secret"
sms="+1-234-567-8901" />

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

Child Structure

ElementCardinalityDescription
staticUserDataProvider-user0..*

Can be used in