Location:  WebCFG documentation > XML specification

AuthSimple

Type: AuthSimple
Parent: AuthSimpleSet

This element provides a simple way to create login accounts. Username and password are stored in the XML config file.

Attributes
Attribute Description Usage
id A unique ID. This authentication element can be referenced by that name from any config element. required
displayname A descriptive text that will be displayed below the login prompt to remind the user of what credentials he has to use to login. optional
username The username for the login required
password The password for the login required
login   optional
Examples
<authentications>
   <simpleset>
      <simple id="guest" username="guest"  password="guest" 
         displayname="(Login: guest, password: guest)"/>
      <simple id="admin" username="admin" password="dkwZn29a"/>
   </simpleset>
</authentications>
	
[...]
      
<wcapp id="testConfig" 
   displayname="Test configuration"
   authref="admin">
        
        [...]
        
</wcapp>
			

This example shows how to define two logins and how to reference them from a config. If guest is referenced, the user will get some additional information on what credentials he can use. With admin nothing is displayed below the login prompt.

top