W tym projekcie jako metody uwierzytelnienia używamy "HTTP Basic Authorization"
Czyli za pomocą nagłówka z użytkownikiem i hasłem zakodowanymi w base64 dopisywanego do zapytania.

Po stronie serwera użytkowników definiujemy skryptem add-user, co powoduje dopisanie do odp. pliku. 

./add-user.sh 

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): b

Enter the details of the new user to add.
Using realm 'ApplicationRealm' as discovered from the existing property files.
Username : ala
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password : 
WFLYDM0099: Password should have at least 8 characters!
Are you sure you want to use the password entered yes/no? yes
Re-enter Password : 
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: uprawniony
About to add user 'ala' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'ala' to file '/opt/java/wildfly-17.0.1.Final/standalone/configuration/application-users.properties'
Added user 'ala' to file '/opt/java/wildfly-17.0.1.Final/domain/configuration/application-users.properties'
Added user 'ala' with groups uprawniony to file '/opt/java/wildfly-17.0.1.Final/standalone/configuration/application-roles.properties'
Added user 'ala' with groups uprawniony to file '/opt/java/wildfly-17.0.1.Final/domain/configuration/application-roles.properties'
Is this new user going to be used for one AS process to connect to another AS process? 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? no
