This feature is not available in the open core - see server for details.

Form-based login, with a file-based user store

This authentication method uses a form-based login (username and password), with the set of users stored in a file called structurizr.users in the Structurizr data directory (passwords are hashed using bcrypt). A user with the username of structurizr and password of password is created by default.

Configuration

Name Value
structurizr.authentication file

structurizr.users file

You can add, remove or modify users as needed. Each line in this file should be in the following format:

username=hashed_password

For example:

alice=$2a$06$uM5wM.eJwrPq1RM/gBXRr.d0bfyu9ABxdE56qYbRLSCZzqfR7xHcC
bob=$2a$10$1SIlopeot3Tsyxt5wHAwo.WBQd8PWd.N4rKKM2I89HZIX.R6/idbe

structurizr.roles file

It is also possible to configure a comma separated list of roles for every user, in a file called structurizr.roles, again in the Structurizr data directory. Each line in this file should be in the following format:

username=role1,role2,role3

For example:

alice=role1
bob=role2