SuperMap iPortal provides the keys management function. Administrators can view, retrieve, and delete all keys in the portal, and can modify the default quota of key access through the configuration file, review quota applications submitted by other users in the portal after enabling the quota review function.
Keys management
Log in to the portal homepage as an administrator, and click "Management" > "Security" > "Keys" > "Keys Management" to enter the Keys Management page, you can perform the following operations:
- View keys: You can view all keys that have been added to the portal, including key name, request verification mode, validity periods, number of associated resources, quota details, owners, and other information.
-
Search keys: You can retrieve keys by entering the key characters of the name or owner in the search box.
-
Delete keys: Select one or more keys, and click the "Delete" button to delete keys in batches. It should be noted that after the key is deleted, the services and data corresponding to the key cannot be called.
Quota Review
Log in to the portal homepage as an administrator, and click "Management" > "Security" > "Keys" > "Keys Quota Review" to enter the Keys Quota Review page. The quota review function is disabled by default, you can evaluate whether you need to enable it according to your business needs. When quota reviewing is disabled, users can set the quota for key access by themselves after adding a key, without the administrator's approval; if enabled, users need to submit a quota application to the administrator if they want to change the key quota. The key quota will take effect only after the administrator has approved it. The quota review function helps administrators to take corresponding measures such as server scaling and other measures to ensure the stability and performance of the portal software platform according to the quota increase requirements.
After enabling the quota review function, you can perform the following operations:
- View quota application: You can view quota applications submitted by other users in the portal, including the name of the key, the applicant, the requested quota details, the reason for the application, and the application status.
- Review quota applications: You can view quota applications one by one, and click the "Approve" or "Reject" button after each quota application entry to complete quota approval; you can also review quota applications in batches, check one or more quota applications, and click the "Approve" or "Reject" button after each quota application entry. Click the "Approve" or "Reject" button in the upper left corner to complete the quota approval.
- Retrieve quota applications: Enter the key characters of the name or owner in the search box to retrieve pending quota applications.
- Delete quota applications: Check one or more quota applications and click the "Delete" button to delete quota applications in batches.
Modify default quota
iPortal provides 1w times/day access quota for each associated resource of the key by default. The administrator can modify the default quota via the <keyConfig> node of the iportal.xml file in the %SuperMap iPortal_HOME%/webapps/iportal/WEB-INF directory.
...
<IportalConfig>
<keyConfig>
<defaultMaxCount>10000</defaultMaxCount>
<defaultMaxCountType>DAY</defaultMaxCountType>
<allowQuotaAudit>false</allowQuotaAudit>
</keyConfig>
...
</IportalConfig>
- <defaultMaxCount>: Sets the default access quota for key-related resources. The default value is 10000. You can modify it according to your business needs.
- <defaultMaxCountType>: The time unit for setting the default access quota for key-related resources. The default value is DAY, which can be changed to HOUR, DAY, MONTH, YEAR as required.
- <allowQuotaAudit>: Sets whether to enable quota reviewing, the default value is false.