Administration of users, roles and OAuth (mercury-gui-auth)
The application mercury-gui-auth is a web panel for the data of authentication and authorization of Mercury DB (HgDB) 3.0: local users, role mappings, a read-only view of the LDAP directory, OAuth 2.0 clients and the license key of the panel itself. Until now these data were edited directly in the database. The panel is installed with the server (a WAR next to mercury-ws-app) and is available at /mercury-gui-auth/ui/home.
Integration with LDAP repository
Mercury DB (HgDB) 3.0 authenticates users against an LDAP directory and a local repository of users, and it takes their groups and roles from them. The LDAP connection is defined in two separate places, because the OAuth service is a separate mechanism: it builds its own realm from its own configuration file and does not use the realm from server.xml. A change made in only one of them leaves the system inconsistent. This page describes both places and the role mapping.