Setup of guest login is available for internal users and users connected from server.
To connect internal guest user:
Add a new user in the security manager utility is started. Set guest user name and password, for example:
GUEST. User name.
guest. User password.
NOTE. Adding a guest user of Foresight Analytics Platform is available for repository owner, platform administrator, or system security administrator.
Add the created user to the Users group to log in to the repository.
Save credentials of the added user using the PP.Util utility:
In Linux OS:
./PP.Util /save_creds "METABASE_ID" /gc "GUEST"
In Windows OS:
PP.Util.exe /save_creds "METABASE_ID" /gc "GUEST"
To confirm the operations, enter the user password from the Step 1.
After executing this command Metabases.xml the saved credentials of the GUEST user are added inside tags in the specified METABASE_ID in the repository settings file.
In the PP.xml file in the <metabase> section add the authentication="Guest" attribute. Make sure that the identifier of the repository, for which guest login is set up, is written in the id attribute of the <metabase> section.
Restart web server and BI server after making changes to the Metabases.xml repository settings file.
Start the web application. Enter any URL of the web application page in the browser, except for login.html. The guest login is executed to the specified repository.
To connect a guest user from server:
Create a new user by means of SQL. For example, for PostgreSQL:
CREATE ROLE "GUEST" LOGIN ENCRYPTED PASSWORD 'guest' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;
Create a mew user in the security manager. Set the Connected from Server attribute for this user.
Repeat the Steps 2-6 of the guide to connect internal guest user.
See also: