Overview
Function Description
When a user accesses a template preview URL generated by the designer, for example, http://localhost:8075/webroot/decision/view/report?viewlet=GettingStartedEN.cpt, it is necessary to verify if the user is a valid user of the decision-making platform. Logged-in users can access all templates, and non-logged-in users are denied access to all templates.
The logged-in users refer to users who successfully log in to the decision-making platform using valid usernames and passwords configured on the platform, rather than users who log in to their own system where FineReport is running. Authenticating User Password Only works with user identity authentication, meaning that usernames and passwords are verified based on the authentication method configured in User Management.
Application Scenario
In a small system with a limited number of users and little need for permission assignment, your primary goal is to prevent template access by non-logged-in users. In this case, you are advised to set the template authentication method to Authenticate User Password Only.
Example
Setting Template Authentication
Log in to the decision-making platform as the admin, choose System Management > Template Authentication, click the icon to enter the Permission Configuration page, and enable Template Permission.
Click Select to select templates that require authentication. The blue icon indicates authentication is required, while the black
icon indicates no authentication is required.
Select Authenticate User Password Only in Authentication Method, and click Save, as shown in the following figure.
Effect Display
Enter the template URL in the address bar of a browser and press Enter to open the template.
Username and password of the decision-making platform are required to view the template, as shown in the following figure.