Portal page display method and device, electronic equipment and computer storage medium
By allowing users to choose an authentication mechanism and dynamically match the Portal authentication page, the problem that traditional Portal authentication methods are difficult to meet diverse needs in multiple scenarios and multi-user environments is solved, achieving higher flexibility and user experience.
Patent Information
- Application Number
- CN202411444142.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-03-07
AI Technical Summary
When traditional Portal authentication methods face multi-scenario, multi-user, and multi-time network environments, a single Portal page is difficult to meet the diverse authentication needs and user experience.
Provide a Portal page display method, allowing users to select an authentication mechanism and dynamically match the Portal authentication page, display the corresponding Portal authentication page through the client to realize authentication, and display the authentication success page according to the preset matching strategy.
It improves the flexibility and user experience of Portal pages, meets the authentication needs of different scenarios and users, and provides a more convenient and safe authentication method.
Smart Images

Figure CN119576454A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a portal page display method, device, electronic device and computer storage medium. Background Art
[0002] Portal authentication (also known as Web authentication) can provide identity authentication and personalized information services to users in the form of web pages.
[0003] With the popularization of Internet technology and wireless network access, security requirements have increased. Traditional Portal authentication methods usually rely on device-side deployment. When facing a multi-scenario, multi-user, and multi-time network environment, a single Portal page is difficult to meet diverse authentication requirements and user experience. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, the present invention provides a Portal page display method, device, electronic device and computer storage medium, which allow users to select an authentication mechanism and dynamically match a Portal authentication page, thereby improving the flexibility of the Portal page and the user experience.
[0005] A first aspect of the present application provides a portal page display method, the method comprising: When receiving an access request from a user, determining an identity authentication mechanism selected by the user from an authentication configuration list; Match the portal authentication page corresponding to the identity authentication mechanism from the preset database; Displaying the Portal authentication page to the user through a client, so that the user enters a first authentication parameter based on the Portal authentication page; When the first authentication parameter is received, authenticating the first authentication parameter based on the identity authentication mechanism to obtain an authentication result; When it is determined that the authentication result is successful, the corresponding Portal authentication success page is matched from the preset database based on the preset matching strategy for display.
[0006] In an optional implementation, matching the corresponding Portal authentication success page from the preset database based on the preset matching strategy for display includes: Determine the device type and time period information corresponding to the access request; Matching the Portal page template corresponding to the device type and the time period information from the preset database; Generate the Portal authentication success page according to the Portal page template.
[0007] In an optional embodiment, the method further comprises: When receiving a Portal page construction instruction input by a user, determining a Portal page template corresponding to the Portal page construction instruction; Determining the actual needs of the user input; A Portal authentication page is constructed based on the actual demand and the Portal page template, wherein the Portal authentication page includes the Portal authentication page and the Portal authentication success page.
[0008] In an optional embodiment, the method further comprises: When receiving the Portal configuration instruction input by the user, a blank Portal configuration page is constructed; Determine the Portal configuration information corresponding to the Portal configuration instruction; Fill the Portal configuration information into the blank Portal configuration page to obtain an initial Portal configuration page; Binding the initial Portal configuration page with the authentication configuration list and the preset matching strategy to obtain a target Portal configuration page; The target Portal configuration is published to the cloud to ensure that the target Portal configuration page takes effect in real time.
[0009] In an optional embodiment, the method further comprises: When receiving a deletion instruction of the target Portal configuration page, determining whether the usage status of the target Portal page is in a used status; When it is determined that the usage state of the target Portal page is the used state, sending a deconfiguration binding instruction to the user, so that the user releases the use of the target Portal page; When it is determined that the usage state of the target Portal page is switched from the used state to the unused state, deleting the target Portal page; When it is determined that the usage state of the target Portal page is the unused state, the target Portal page is deleted.
[0010] In an optional embodiment, the method further comprises: When receiving the authentication configuration instruction input by the user, determining the identity authentication mechanism set carried by the authentication configuration instruction; Determine the authentication item corresponding to each identity authentication mechanism in the identity authentication mechanism set; Receiving a second authentication parameter corresponding to the authentication item set by the user through the client; The authentication configuration list is constructed based on the identity authentication mechanism set and the second authentication parameter.
[0011] In an optional implementation, before constructing the authentication configuration list based on the identity authentication mechanism set and the second authentication parameter, the method further includes: Verifying the second authentication parameter to obtain a verification result; When it is determined that the verification result is a passed verification, performing the operation of constructing the authentication configuration list based on the identity authentication mechanism set and the second authentication parameter; When it is determined that the verification result is a verification failure, a verification failure instruction is sent to the client, so that the user sets the second authentication parameter corresponding to the authentication item through the client.
[0012] A second aspect of the present application provides a Portal page display device, the device comprising: A determination module, configured to determine, when receiving an access request from a user, an identity authentication mechanism selected by the user from an authentication configuration list; A first matching module, used to match the Portal authentication page corresponding to the identity authentication mechanism from a preset database; A display module, used for displaying the Portal authentication page to the user through a client, so that the user enters a first authentication parameter based on the Portal authentication page; an authentication module, configured to, upon receiving the first authentication parameter, authenticate the first authentication parameter based on the identity authentication mechanism to obtain an authentication result; The second matching module is used to match the corresponding Portal authentication success page from the preset database based on a preset matching strategy for display when it is determined that the authentication result is successful.
[0013] A third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the Portal page display method when executing the computer program.
[0014] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned Portal page display method are implemented.
[0015] In summary, the Portal page display method, device, electronic device and computer storage medium provided by the present application allow the user to select one or more identity authentication mechanisms from the authentication configuration list according to personal needs when accessing the network, and match the corresponding Portal authentication page from the preset database according to the identity authentication mechanism selected by the user, that is, no longer relying on a single Portal page, but can dynamically generate or match the corresponding Portal page according to different authentication requirements. The Portal authentication page that matches the selected authentication mechanism is displayed to the user through the client, and the user can intuitively see the operation interface of the selected identity authentication mechanism. When the first authentication parameter input by the user is received, the first authentication parameter is authenticated based on the identity authentication mechanism selected by the user. If the authentication is successful, the corresponding Portal authentication success page is matched from the preset database according to the preset matching strategy for display, and the flexibility and user experience of the Portal page are further improved through the personalized Portal authentication success page. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a structural diagram of a Portal page display system shown in an embodiment of the present application; Figure 2 It is a flow chart of a method for displaying a portal page shown in an embodiment of the present application; Figure 3 is another flow chart of a method for displaying a portal page shown in an embodiment of the present application; Figure 4 It is a flow chart of a Portal page configuration method shown in an embodiment of the present application; Figure 5 This is a schematic diagram of an interface of a Portal authentication page shown in an embodiment of the present application; Figure 6 This is a schematic diagram of an interface for setting a Portal authentication page shown in an embodiment of the present application; Figure 7 It is a schematic diagram of a second interface of setting a Portal authentication page shown in an embodiment of the present application; Figure 8 It is a schematic diagram of an interface for editing authentication configuration shown in an embodiment of the present application; Fig. 9 It is a schematic diagram of a second interface of editing authentication configuration shown in an embodiment of the present application; Fig.10 It is a schematic diagram of the third interface of an editing authentication configuration shown in an embodiment of the present application; Fig.11It is a schematic diagram of the fourth interface of an editing authentication configuration shown in an embodiment of the present application; Fig.12 It is a schematic diagram of a fifth interface of an editing authentication configuration shown in an embodiment of the present application; Fig.13 is a schematic diagram of an interface of a Portal configuration shown in an embodiment of the present application; Fig.14 This is a schematic diagram of an interface for editing a Portal page shown in an embodiment of the present application; Fig.15 It is a schematic diagram of a second interface of editing a Portal page shown in an embodiment of the present application; Fig.16 1 is a schematic diagram of a third interface of editing a Portal page shown in an embodiment of the present application; Fig.17 1 is a schematic diagram of a fourth interface of editing a Portal page shown in an embodiment of the present application; Fig.18 This is a schematic diagram of an interface for setting a portal authentication success page shown in an embodiment of the present application; Fig.19 is a schematic diagram of an interface for deleting a Portal page shown in an embodiment of the present application; Fig. 20 It is a functional module diagram of a Portal page display device shown in an embodiment of the present application; Fig.21 It is a structural schematic diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0018] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by technicians in this field without creative work are all within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the formation of a better connection structure by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interchangeably without conflicting with each other.
[0019] Reference Figure 1 Shown is a schematic diagram of the structure of a Portal page display system shown in an embodiment of the present application. The portal page display system 1 is customized based on a cloud architecture, and the portal page display system 1 may include a portal template management module 10 , an authentication configuration module 20 and a policy management module 30 .
[0020] The Portal template management module 10 is used to enable users to build, edit and manage multiple Portal page templates. Specifically, the electronic device can design a user interface based on a front-end framework (e.g., React, Vue, etc.), allowing users to build, edit and manage templates. Then, a back-end service is built based on a microservice architecture (e.g., Spring Boot, Node.js, etc.), and the Portal page template building, editing and management requests sent by the front-end are processed by setting a RESTful API interface.
[0021] The authentication configuration module 20 is used to define and store an authentication configuration list. The authentication configuration list may include one-click authentication, SMS authentication, account authentication, etc., and supports configuration of authentication parameters (e.g., session timeout, failure retry strategy, each Internet access duration, daily Internet access duration, etc.). Specifically, the electronic device may first set different authentication parameters for different identity authentication mechanisms in the authentication configuration list, and configure the authentication parameters, thereby realizing the definition of multiple identity authentication mechanisms such as one-click authentication, SMS authentication, and account authentication. After the authentication configuration list is set, the authentication configuration list is stored.
[0022] The policy management module 30 is used to define and store matching policies. Specifically, the electronic device can receive setting information input by the user for setting matching policies, such as device model and time period information, so that the electronic device can use an open source rule engine (such as Drools, Camel) or a custom rule engine to design a rule definition language or interface, and allow the user to define a matching policy based on the device model and time period information, and store the set matching policy in a database, so that in the subsequent authentication process, the electronic device can match the corresponding matching policy from the policy management module 30 according to the user request, device information and time period information, and execute the corresponding authentication process (such as SMS verification, one-click authentication, etc.) based on the matching policy.
[0023] In addition, the policy management module 30 is also used to implement real-time update and release of matching policies. For example, the electronic device can use CI / CD tools such as Jenkins and GitLab CI to build continuous integration and continuous delivery pipelines to ensure the security and stability of policy updates.
[0024] In some embodiments, the user can set the Portal page based on the Portal template management module 10. Specifically, different Portal page templates are selected in the Portal template management module 10, and the Portal authentication page and the Portal authentication success page are designed according to actual needs. Among them, the Portal authentication page supports user-defined Portal title, welcome, Internet access agreement (entered in rich text), advertising image, Logo, etc. The Portal authentication success page supports user-defined title, welcome, advertising image (supports customized jump web page address), etc. Exemplarily, in actual applications, for example, in a hotel, when the administrator configures the Portal authentication page, the title of the Portal authentication page can be modified to the hotel name, the background image can be modified to the hotel lobby photo, and the Logo can be modified to the hotel Logo, etc. In addition, when the administrator configures the Portal authentication page, the title can be modified to the hotel name, the advertising slogan can be modified to the hotel's promotional slogan, and the advertising image can be modified to the hotel's featured promotional image, etc.
[0025] Compared with the single Portal page in the prior art, this application uses the Portal template management module, which allows users to easily build, edit and manage multiple Portal page templates, greatly improving the customization of the Portal page. The authentication configuration module provides a variety of identity authentication mechanisms and supports the configuration of multiple authentication parameters. It provides users with a more convenient and secure authentication method through diversified authentication mechanisms, while also meeting the authentication requirements in different scenarios. The policy management module allows users to define matching strategies based on device model and time period information, and realizes real-time updating and publishing of matching strategies, so that the Portal page can automatically match the corresponding authentication process according to different devices and time periods, thereby improving authentication efficiency and security. In summary, this application significantly improves the flexibility and user experience of the Portal page by providing highly customized Portal pages, rich authentication mechanisms, and intelligent policy management to adapt to a wide range of application scenarios.
[0026] Reference Figure 2 , which is a flow chart of a Portal page display method shown in an embodiment of the present application, and the Portal page display method includes the following steps.
[0027] S21, when receiving an access request from a user, determining the identity authentication mechanism selected by the user from an authentication configuration list.
[0028] In some embodiments, reference is made to Figure 3, when the user wants to access the network through the client, that is, to initiate an Http connection request through the client, the client sends the Http connection request to the electronic device. When receiving the Http connection request initiated by the user through the client, the electronic device checks whether the user has passed the Portal authentication. If the user has not performed Portal authentication, the electronic device queries the identity authentication mechanism selected by the user when making the access request. Specifically, when it is determined that the user has not performed Portal authentication, the electronic device can send a list of available authentication configurations to the client, so that the client displays the list of available authentication configurations to the user, and the user can select one or more identity authentication mechanisms from the authentication configuration list according to needs.
[0029] Among them, the authentication configuration list is pre-set by the user according to actual needs, or it can be pre-set by the network administrator according to actual needs, including multiple identity authentication mechanisms, such as one-click authentication, SMS authentication and account authentication, etc. The identity authentication mechanism supports configuring different authentication parameters according to different authentication methods. The authentication parameters may include session timeout, failure retry strategy, each Internet access duration and daily Internet access duration, etc.
[0030] In other embodiments, if the user does not perform Portal authentication, the electronic device redirects the user's access request to the Portal server. After receiving the user's access request, the Portal server queries the authentication configuration information carried in the user's access request to determine the identity authentication mechanism selected by the user from the authentication configuration list.
[0031] Through the above optional implementation, when a user accesses the network through a client, it is checked whether the user has been authenticated by Portal. If not, the identity authentication mechanism selected by the user is queried. The user can select from a preset authentication configuration list, including multiple authentication methods and parameter configurations, which improves the flexibility and security of access control.
[0032] In an optional embodiment, the method further comprises: When receiving the authentication configuration instruction input by the user, determining the identity authentication mechanism set carried by the authentication configuration instruction; Determine the authentication item corresponding to each identity authentication mechanism in the identity authentication mechanism set; Receiving a second authentication parameter corresponding to the authentication item set by the user through the client; The authentication configuration list is constructed based on the identity authentication mechanism set and the second authentication parameter.
[0033] In some embodiments, reference is made to Figures 4 to 12, the user can set the authentication configuration list according to actual needs. Specifically, when the user enters the authentication configuration instruction through the configuration interface of the Portal page or the management background, the authentication configuration instruction can be a button click, form submission or other forms of user input. When receiving the authentication configuration instruction, the electronic device parses the authentication configuration instruction to determine the set of identity authentication mechanisms that the user needs to configure, where the identity authentication mechanism set may include one or more identity authentication mechanisms, such as one-click authentication, SMS authentication, and account authentication. For each identity authentication mechanism in the identity authentication mechanism set, the electronic device needs to determine its corresponding authentication item, where the authentication item refers to the specific authentication steps and authentication information required for the authentication of the identity mechanism. For example, for the username and password authentication mechanism, the authentication items may include the username, password, and possible password strength requirements. For the SMS verification code authentication mechanism, the authentication items may include the mobile phone number, the verification code sending interval, the verification code validity period, etc.
[0034] After the electronic device determines the authentication items corresponding to each identity authentication mechanism, it displays the authentication items to the user through the configuration interface of the Portal page, and allows the user to set the corresponding authentication parameters (called second authentication parameters). The user enters the second authentication parameters required for each authentication item through the client, such as setting the specific values of the user name and password, selecting the verification code sending interval and validity period, etc. After receiving the second authentication parameters entered by the user, the electronic device can perform necessary verification on the second authentication parameters. Specifically, the electronic device can verify the received second authentication parameters according to preset verification rules, wherein the preset verification rules may include parameter format, length, complexity requirements, and the degree of matching with previously stored or calculated values (such as hash values, digests, etc.).
[0035] If the second authentication parameter fails to pass the verification, the second authentication parameter input by the user is obtained again and further verified. After the second authentication parameter passes the verification, the electronic device further combines the identity authentication mechanism set selected by the user and the corresponding second authentication parameter to construct an authentication configuration list, wherein the authentication configuration list includes all the identity authentication mechanisms that the user wants to use and their corresponding authentication items and second authentication parameters. Then, the electronic device can save the authentication configuration list to the cloud so that the authentication configuration can be checked and matched when the user tries to access the network.
[0036] In some embodiments, the electronic device also supports the user to update the authentication configuration of the authentication configuration list through the Portal page at any time. When the user modifies the identity authentication mechanism, authentication item or authentication parameter, the electronic device can update the authentication configuration list in real time.
[0037] Through the above optional implementation, users are allowed to customize the authentication configuration list, including selecting the identity authentication mechanism, setting authentication items and authentication parameters. Through the Portal page or the management backend, users can flexibly configure and update authentication requirements, improve system security and flexibility, and ensure that network access control meets actual needs. Secondly, by integrating multiple identity authentication mechanisms, it can be applied to a wider range of application scenarios, such as one-click authentication is suitable for mobile devices without SIM cards: laptops, tablets, etc.; SMS authentication is suitable for mobile phones; account authentication is suitable for some specific places, such as airports, hotels, hospitals, office buildings, etc.
[0038] S22, matching the Portal authentication page corresponding to the identity authentication mechanism from a preset database.
[0039] In some embodiments, after determining the identity authentication mechanism selected by the user, the electronic device can search for the Portal authentication page corresponding to the identity authentication mechanism in the preset database. Among them, the preset database is set in the cloud, and the preset database is a database that stores a variety of identity authentication mechanisms and their corresponding Portal authentication pages. In addition, the Portal authentication page is pre-set and contains the elements and forms required for the user to authenticate. Then, the electronic device can query the preset database based on the identity authentication mechanism to find the corresponding Portal authentication page.
[0040] In other embodiments, refer to Figure 3 , the Portal server searches for the corresponding Portal authentication page in the preset database according to the determined identity authentication mechanism.
[0041] In an optional embodiment, the method further comprises: When receiving a Portal page construction instruction input by a user, determining a Portal page template corresponding to the Portal page construction instruction; Determining the actual needs of the user input; A Portal authentication page is constructed based on the actual demand and the Portal page template, wherein the Portal authentication page includes the Portal authentication page and the Portal authentication success page.
[0042] Among them, the Portal authentication page may include a Portal authentication page and a Portal authentication success page. Figure 7, when the user needs to build a Portal authentication page, a Portal page construction instruction can be sent to the electronic device based on the client, wherein the Portal page construction instruction may include a request to build a Portal page and the initial configuration information of the Portal page. When the electronic device receives the Portal page construction instruction input by the user, the Portal page construction instruction is parsed to determine the template information in the Portal page construction instruction or select the preset Portal page template by default. Among them, the Portal page template may include different layouts, styles and component libraries to adapt to different application scenarios and user needs. In addition, the electronic device can also collect the user's actual needs for the Portal page through user input, configuration files or interface interaction with other systems, wherein the actual needs may include, but are not limited to: page title, welcome message, Internet access agreement content, advertising image, Logo and other elements of the custom requirements, as well as page layout, color scheme and other design preferences. Next, based on the determined actual needs and the selected Portal page template, the electronic device can build a Portal authentication page, which may include: 1) displaying a customized title and welcome message at the top or in a prominent position of the Portal authentication page according to user requirements; 2) entering or uploading the Internet access agreement content in rich text format to ensure that the user can read and agree to the relevant terms before authentication; 3) embedding advertising images and logos into the Portal authentication page based on the image resources provided by the user to improve the page's aesthetics and brand recognition.
[0043] Refer to Fig.18 ,Similar to the Portal authentication page, the electronic device can build a Portal authentication success page according to the actual needs of the user, which may include: 1) displaying a user-defined title and welcome message on the authentication success page to convey the message of successful authentication; 2) adding advertising images to the authentication success page according to user requirements, and supporting customized jump web page addresses so that users can access specified resources or pages after authentication.
[0044] After completing the design of the Portal authentication page and the Portal authentication success page, the electronic device generates the final Portal page and stores the Portal page in a preset database. The Portal page can be published to a designated location on the network so that users can see and use the Portal page for authentication when accessing the network.
[0045] In some implementations, the Portal page is designed in the Portal page template based on actual needs to obtain a Portal page. The Portal page includes a Portal authentication page and a Portal authentication success page, etc. The Portal authentication page supports user-defined Portal titles, welcome words, Internet access agreements (entered in rich text), advertising pictures, logos, etc., and the Portal authentication success page supports user-defined titles, welcome words, advertising pictures (supports customized jump web page addresses), etc. Exemplarily, in actual applications, such as in a hotel, when configuring the Portal authentication page, the administrator can modify the title of the Portal authentication page to the hotel name, modify the background picture to a photo taken in the hotel lobby, modify the logo to the hotel logo, etc. In addition, when configuring the Portal authentication page, the administrator can modify the title to the hotel name, modify the advertising slogan to the hotel's promotional slogan, modify the advertising picture to the hotel's featured promotional picture, etc.
[0046] In some embodiments, the electronic device also supports users to update the content and settings of the authentication page at any time through the Portal page configuration interface or management background. When the user modifies the identity authentication mechanism, authentication items or authentication parameters, the system can update the Portal page in real time to ensure the accuracy and effectiveness of the page.
[0047] Through the above optional implementation method, the Portal authentication page corresponding to the identity authentication mechanism is matched by the preset database, which improves the efficiency and accuracy of obtaining the authentication page. At the same time, it also supports users to customize the content and style of the Portal page, including the title, welcome message, Internet access agreement, advertising image and Logo, etc., which enhances the user experience and the flexibility of the system. In addition, it also allows users to customize the construction of the Portal authentication page and the Portal authentication success page, ensuring that the user can match the corresponding Portal authentication page for identity authentication when accessing the network, thereby improving the availability and security of the system.
[0048] S23: Display the Portal authentication page to the user through the client, so that the user inputs a first authentication parameter based on the Portal authentication page.
[0049] In some embodiments, the electronic device can send the matched Portal authentication page to the user's client. After the client receives the Portal authentication page, it displays the Portal authentication page to the user. The user enters the corresponding authentication parameters (called first authentication parameters, such as user name, password, etc.) according to the prompts on the Portal authentication page, and submits the first authentication parameters to the Portal server through a form or the like. Figure 3, the Portal server can send the matched Portal authentication page to the user's client. After the client receives the Portal authentication page, it displays the Portal authentication page to the user. The user enters the corresponding first authentication parameter according to the prompt on the Portal authentication page, and submits the first authentication parameter to the Portal server through a form or the like.
[0050] S24: When the first authentication parameter is received, the first authentication parameter is authenticated based on the identity authentication mechanism to obtain an authentication result.
[0051] In some embodiments, after receiving the first authentication parameter submitted by the user, the electronic device will authenticate it according to the previously determined identity authentication mechanism. For example, if the identity authentication mechanism is username and password authentication, the Portal server will check whether the input username and password match the second authentication parameter in the preset database. After the authentication is completed, the electronic device can generate an authentication result indicating whether the user is successfully authenticated. Figure 3 After receiving the first authentication parameter submitted by the user, the Portal server will authenticate it according to the previously determined identity authentication mechanism. After the authentication is completed, the Portal server will generate an authentication result indicating whether the user is successfully authenticated, and send the authentication result to the electronic device.
[0052] S25, when it is determined that the authentication result is successful, a corresponding Portal authentication success page is matched from the preset database based on a preset matching strategy for display.
[0053] In some embodiments, if the authentication result is successful, the electronic device can search for the corresponding Portal authentication success page in the preset database according to the preset matching strategy. Specifically, the electronic device can define the matching strategy using the conditional expression in the policy management module to obtain the preset matching strategy. For example, the preset matching strategy can specify the application scenarios of different devices and time periods. The electronic device further binds the Portal page with the authentication configuration list and the preset matching strategy, and publishes it to the cloud through the API gateway after the binding is completed.
[0054] In an optional implementation, matching the corresponding Portal authentication success page from the preset database based on the preset matching strategy for display includes: Determine the device type and time period information corresponding to the access request; Matching the Portal page template corresponding to the device type and the time period information from the preset database; Generate the Portal authentication success page according to the Portal page template.
[0055] In some embodiments, when a user accesses a network resource that requires Portal authentication through a client, an access request is generated. After receiving the access request, the electronic device first parses the access request to obtain the device type (such as device model, operating system, etc.) and current time period information (such as morning, afternoon, evening, etc., or more specific date and time) carried in the access request. Among them, the device type can be obtained through the User-Agent field or other related fields in the access request header, the time period information can be obtained through the system time function, and the current time period information is determined according to the preset time period division rule (such as 8 am to 6 pm is the working time period, and the rest is the non-working time period). After determining the device type and time period information, the electronic device can use SQL statements or other database query languages to search for a matching Portal page template in a preset database. Among them, the preset database can include Portal page templates corresponding to multiple device types and multiple time period information, and the Portal page template can be customized according to different application scenarios. After obtaining the matching Portal page template, the electronic device can further generate the final Portal authentication success page based on the Portal page template according to the same embodiment as step S22.
[0056] In other embodiments, the preset database may include Portal pages corresponding to multiple device types and multiple time period information, and the electronic device may directly match the corresponding Portal page based on the device type and time period information.
[0057] In some embodiments, the electronic device can pre-set a preset database based on the device type and time period information corresponding to the access request. Specifically, the electronic device can use rule engine technology so that the user can define authentication policies based on device type (e.g., mobile phone, tablet, notebook, etc.) and time period information (e.g., peak period, off-peak period) through the client, and achieve real-time updates and releases through the continuous integration and continuous delivery (CI / CD) pipeline. Exemplarily, at a high-speed rail station, all users use the same public WIFI to access the Internet. To avoid network congestion, a Portal authentication page that only uses SMS verification codes can be set near the entrance during peak traffic hours from 10:00 to 14:00. When the user performs Portal authentication to access the Internet here, the device to which it is connected will only support verification code authentication, which can reduce the number of user terminals connected to the network at the same time and ensure smooth network operation. Similarly, after successful authentication, the corresponding Portal authentication success page is matched based on the same embodiment described above.
[0058] When a corresponding Portal authentication success page is generated based on the Portal page template, or directly matched to the corresponding Portal authentication success page, the electronic device can send the Portal authentication success page to the user's user device for display via HTTP response or other network protocols, and allow the user to access the network.
[0059] In other embodiments, refer to Figure 3 If the authentication result is successful, the Portal server can search for the corresponding Portal authentication success page in the preset database according to the preset matching strategy. After matching the corresponding Portal authentication success page, the Portal server can send the Portal authentication success page to the user's client for display. After the user sees the Portal authentication success page, it means that he has successfully accessed the network and can start using network resources. If the Portal server decides to allow the user to access the network, it sends the Portal authentication result to the client, indicating that the authentication is successful.
[0060] Through the above optional implementation method, the corresponding Portal authentication success page is matched in the preset database through the preset matching strategy, so as to realize the personalized Portal authentication success page display based on the device type and time period information. Secondly, the matching strategy is defined by the policy management module, and the Portal page is bound to the authentication configuration list and the matching strategy and then published to the cloud, which improves the flexibility and customizability of the Portal authentication page. At the same time, the matching strategy is updated and published in real time through the rule engine technology, which ensures the timeliness and accuracy of the Portal authentication page. In addition, the matching strategy defined by the conditional expression can be adapted to a variety of application scenarios, and the manager can adjust the matching strategy according to the actual situation to improve the utilization of resources.
[0061] In some embodiments, when it is determined that the authentication result is an authentication failure, the electronic device may prohibit the user from further accessing the network. In addition, the electronic device may also send an authentication failure instruction and a Portal authentication page to the client, so that the user re-enters the first authentication parameter in the Portal authentication page. Figure 3 If the Portal server decides to prohibit the user from accessing the network, it can send the device-side processing result to the client, indicating that the authentication result is authentication failure. In addition, the user can communicate with the Portal server again through the client to confirm its authentication result.
[0062] In an optional embodiment, the method further comprises: When receiving the Portal configuration instruction input by the user, a blank Portal configuration page is constructed; Determine the Portal configuration information corresponding to the Portal configuration instruction; Fill the Portal configuration information into the blank Portal configuration page to obtain an initial Portal configuration page; Binding the initial Portal configuration page with the authentication configuration list and the preset matching strategy to obtain a target Portal configuration page; The target Portal configuration is published to the cloud to ensure that the target Portal configuration page takes effect in real time.
[0063] In some embodiments, when receiving a Portal configuration instruction input by a user through a client, the electronic device constructs a blank Portal configuration page according to a preset Portal page template, wherein the blank Portal configuration page contains necessary form elements and layouts, but has not yet filled in any specific configuration information.
[0064] The electronic device parses the Portal configuration instructions input by the user to extract key information from the Portal configuration instructions, such as the title, content, style, authentication method, etc. of the Portal page. According to the parsed key information, the specific Portal configuration information is obtained from the user input or the preset database, or the key information is directly used as the Portal configuration information, and then the Portal configuration information is filled into the corresponding position of the blank Portal configuration page. The initial Portal configuration page is obtained. During the process of filling in the Portal configuration information or after the filling is completed, the Portal configuration information is verified to ensure that it complies with the preset format or preset rules of the Portal page. Further, the electronic device obtains the pre-set authentication configuration list and preset matching strategy, binds the initial Portal configuration page with the authentication configuration list and the preset matching strategy, and generates a target Portal configuration page. Among them, the target Portal configuration page contains complete Portal configuration information, including identity authentication mechanism and matching strategy. Specifically, after the electronic device completes the filling to obtain the initial Portal configuration page, in the Portal configuration module, configures the device type and device quantity (for example, supports multiple) for the initial Portal configuration page, referring to Fig.14 , then configure the authentication strategy (for example, support multiple authentication mechanisms), refer to Fig.13 , and finally save to get the target Portal configuration page. The electronic device can further publish the target Portal configuration page to the cloud through the API gateway to ensure that the Portal configuration can take effect in real time.
[0065] Through the above optional implementation method, by receiving the Portal configuration instructions input by the user, building and filling the Portal configuration page, binding the authentication configuration and matching strategy and then publishing it to the cloud, the Portal configuration can be quickly generated and take effect in real time, thereby improving the configuration efficiency and flexibility and ensuring the accuracy and consistency of the configuration information.
[0066] In an optional embodiment, the method further comprises: When receiving a deletion instruction of the target Portal configuration page, determining whether the usage status of the target Portal page is in a used status; When it is determined that the usage state of the target Portal page is the used state, sending a deconfiguration binding instruction to the user, so that the user releases the use of the target Portal page; When it is determined that the usage state of the target Portal page is switched from the used state to the unused state, deleting the target Portal page; When it is determined that the usage state of the target Portal page is the unused state, the target Portal page is deleted.
[0067] In some embodiments, the electronic device allows the user to customize, build, edit and manage multiple Portal page templates. Figure 5 and Fig.19, when a user needs to delete a certain configured Portal page, the following steps may be included: 1) select an existing Portal page; 2) click delete; 3) if the Portal page has been used, it will prompt that the deletion failed and please unbind the configuration before deleting it. If it is not used, it can be directly deleted successfully. That is, when the electronic device receives the deletion instruction sent by the client for the target Portal configuration page, the electronic device queries the current usage status of the target Portal configuration page, including whether the target Portal configuration page has been assigned to the user, whether it is being accessed, or whether it has been marked as "used". According to the query result, the electronic device can determine whether the usage status of the target Portal configuration page is "used". When the target Portal configuration page is in the used state, the electronic device can generate a deconfiguration binding instruction, wherein the deconfiguration binding instruction may include the identification information of the target Portal page and the specific reason or prompt for unbinding, and send the deconfiguration binding instruction to the user's client through a communication protocol (such as HTTP, SMTP, WebSocket, etc.). After the user receives the unbinding command on the client, he / she releases the use of the target Portal configuration page according to the prompts, such as logging out of the target Portal configuration page from the current session, closing related access permissions, etc. After sending the unbinding command, the electronic device continuously monitors the usage status of the target Portal configuration page. When the electronic device detects that the usage status of the target configuration Portal page has switched from "used status" to "unused status", it confirms that the status switch is complete, and performs a deletion operation to remove the relevant data of the target Portal configuration page from the preset database, including configuration information, status information, etc. In addition, the electronic device can also generate a notification of successful deletion, including the identification information of the target Portal configuration page and the specific time of the deletion operation.
[0068] When it is determined that the target Portal configuration page is in an unused state, the electronic device may directly perform a deletion operation of the target Portal configuration page.
[0069] Through the above optional implementation, the user is allowed to customize the management of Portal pages on the electronic device. When a Portal page needs to be deleted, its usage status is first determined. If it has been used, it will be prompted to unbind it before deleting it. If it has not been used, it will be directly deleted, thereby improving the flexibility and security of Portal page management and ensuring the accuracy and consistency of Portal page deletion operations.
[0070] In some embodiments, reference is made to Figure 5, when a user needs to build a Portal page, the following steps may be included: 1) click to add a Portal page; 2) select the template to be used for the Portal page; 3) edit the content displayed on the Portal page; 4) click Save after editing. That is, the user can click the "Add Portal Page" button or link provided in the Portal page to start the construction process of the Portal page. When the electronic device receives the Portal page construction instruction sent by the client, the list of available Portal page templates is displayed on the client, so that the user can select a template that meets the requirements from the Portal page template list. Then, the electronic device can generate a content editing interface based on the Portal page template selected by the user. This interface usually includes various editing tools, such as text boxes, image uploaders, video players, etc., for users to edit the content of the Portal page. After the user completes the editing, click the "Save" button, and the electronic device can save the content edited by the user to the preset database, associate it with the template information to integrate it into a complete Portal page, and store it in the preset database. Finally, the electronic device can also send a notification to the user to inform the user that the Portal page has been successfully built and can be viewed on the user interface provided by the client.
[0071] In some embodiments, reference is made to Figures 5 to 7 ,and Figures 15 to 17 , when a user needs to edit a Portal page, the following steps may be included: 1) select an existing Portal page; 2) click edit. 3) edit the content displayed on the Portal page; 4) click save after editing. That is, when the electronic device receives an editing instruction from the user for a Portal page, it loads the corresponding Portal page and generates a content editing interface according to the editing instruction, so that the user can use the editing tool to modify the content of the Portal page on the content editing interface, including changing text, replacing pictures, adjusting layout, etc. After the user completes the editing, the client can send a save request to the electronic device. After receiving the save request, the electronic device will verify and process the edited content in the request. If the edited content is legal and complete, the electronic device updates the content of the corresponding Portal page in the preset database and generates a new Portal page. Finally, the electronic device can also send a notification to the user to inform the user that the Portal page has been successfully edited and the updated Portal page can be viewed on the user interface provided by the client.
[0072] Through the above optional implementation method, the Portal page is managed by clicking Add / Edit, etc., realizing the construction and editing functions of the Portal page, simplifying the management process of the Portal page, improving the user experience, ensuring the legitimacy and integrity of the data, and ultimately enabling users to easily build and edit personalized Portal pages.
[0073] Compared with the single Portal page display in the prior art, this application allows users to select authentication mechanisms and dynamically match Portal authentication pages, which can provide customized authentication experiences according to different user needs and scenarios, thereby improving the flexibility of the system and user satisfaction. For example, when a user connects to WIFI and prepares for Portal authentication, the electronic device queries the corresponding Portal page configuration data based on the WIFI device model currently connected to the user and the device-associated authentication policy, and presents the data to the user through the Portal page.
[0074] Reference Fig. 20 , which is a functional module diagram of the Portal page display device shown in an embodiment of the present application.
[0075] In some embodiments, the portal page display device 40 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments of the portal page display device 40 may be stored in a memory of an electronic device and executed by at least one processor to perform (see Figure 2 Description) Functions displayed on the Portal page.
[0076] In this embodiment, the Portal page display device can be divided into multiple functional modules according to the functions performed. The functional modules may include: a determination module 401, a first matching module 402, a display module 403, an authentication module 404, a second matching module 405 and a construction module 406. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0077] The determination module 401 is used to determine the identity authentication mechanism selected by the user from the authentication configuration list when receiving an access request from the user.
[0078] The first matching module 402 is used to match the Portal authentication page corresponding to the identity authentication mechanism from a preset database.
[0079] The display module 403 is used to display the Portal authentication page to the user through the client, so that the user enters the first authentication parameter based on the Portal authentication page. The authentication module 404 is configured to authenticate the first authentication parameter based on the identity authentication mechanism when receiving the first authentication parameter to obtain an authentication result.
[0080] The second matching module 405 is used to match the corresponding Portal authentication success page from the preset database based on a preset matching strategy for display when it is determined that the authentication result is successful.
[0081] The second matching module 405 is further specifically used to: determine the device type and time period information corresponding to the access request; match the Portal page template corresponding to the device type and the time period information from the preset database; and generate the Portal authentication success page according to the Portal page template.
[0082] The construction module 406 is used to: when receiving a Portal page construction instruction input by a user, determine the Portal page template corresponding to the Portal page construction instruction; determine the actual requirements input by the user; and construct a Portal authentication page based on the actual requirements and the Portal page template, wherein the Portal authentication page includes the Portal authentication page and the Portal authentication success page.
[0083] The construction module 406 is also used to: construct a blank Portal configuration page when receiving a Portal configuration instruction input by a user; determine the Portal configuration information corresponding to the Portal configuration instruction; fill the Portal configuration information into the blank Portal configuration page to obtain an initial Portal configuration page; bind the initial Portal configuration page with the authentication configuration list and the preset matching strategy to obtain a target Portal configuration page; publish the target Portal configuration to the cloud to ensure that the target Portal configuration page takes effect in real time.
[0084] The construction module 406 is also used for: when receiving a deletion instruction of the target Portal configuration page, determining whether the usage status of the target Portal page is in the used status; when determining that the usage status of the target Portal page is in the used status, sending a release configuration binding instruction to the user so that the user releases the use of the target Portal page; when determining that the usage status of the target Portal page is switched from the used status to the unused status, deleting the target Portal page; when determining that the usage status of the target Portal page is in the unused status, deleting the target Portal page.
[0085] The construction module 406 is also used to: when receiving the authentication configuration instruction input by the user, determine the identity authentication mechanism set carried by the authentication configuration instruction; determine the authentication item corresponding to each identity authentication mechanism in the identity authentication mechanism set; receive the second authentication parameter corresponding to the authentication item set by the user through the client; and construct the authentication configuration list based on the identity authentication mechanism set and the second authentication parameter.
[0086] The construction module 406 is also used to: verify the second authentication parameter to obtain a verification result; when it is determined that the verification result is a passed verification, execute the operation of constructing the authentication configuration list based on the identity authentication mechanism set and the second authentication parameter; when it is determined that the verification result is a failed verification, send a verification failure instruction to the client, so that the user sets the second authentication parameter corresponding to the authentication item through the client.
[0087] It should be understood that the various variations and specific embodiments of the Portal page display method provided in the above embodiments are also applicable to the Portal page display device of this embodiment. Through the above detailed description of the Portal page display method, those skilled in the art can clearly know the implementation method of the Portal page display device in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.
[0088] See also Fig.21 FIG. 2 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. In a preferred embodiment of the present application, the electronic device 21 includes a memory 211 , at least one processor 212 and at least one communication bus 213 .
[0089] Those skilled in the art should understand that Fig.21The structure of the electronic device 21 shown does not constitute a limitation of the embodiments of the present application, and can be either a bus structure or a star structure. The electronic device 21 can also include more or less other hardware or software than shown in the figure, or a different component arrangement.
[0090] In some embodiments, the electronic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 21 may also include user equipment, which includes but is not limited to any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0091] In the above embodiments provided in the present application, it should be understood that the disclosed methods, devices, computer-readable storage media, and electronic devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple components or modules can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or components or modules, which can be electrical, mechanical or other forms.
[0092] The components described as separate components may or may not be physically separated, and the components shown as components may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0093] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0094] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0095] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0096] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0097] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A portal page display method, characterized in that: The method comprises: When receiving an access request from a user, determining an identity authentication mechanism selected by the user from an authentication configuration list; Match the portal authentication page corresponding to the identity authentication mechanism from the preset database; Displaying the Portal authentication page to the user through a client, so that the user enters a first authentication parameter based on the Portal authentication page; When the first authentication parameter is received, authenticating the first authentication parameter based on the identity authentication mechanism to obtain an authentication result; When it is determined that the authentication result is successful, the corresponding Portal authentication success page is matched from the preset database based on the preset matching strategy for display.
2. The portal page display method according to claim 1, characterized in that: Matching the corresponding portal authentication success page from the preset database based on the preset matching strategy for display includes: Determine the device type and time period information corresponding to the access request; Matching the Portal page template corresponding to the device type and the time period information from the preset database; Generate the Portal authentication success page according to the Portal page template.
3. The portal page display method according to claim 1, characterized in that: The method further comprises: When receiving a Portal page construction instruction input by a user, determining a Portal page template corresponding to the Portal page construction instruction; Determining the actual needs of the user input; A Portal authentication page is constructed based on the actual demand and the Portal page template, wherein the Portal authentication page includes the Portal authentication page and the Portal authentication success page.
4. The portal page display method according to claim 1, characterized in that: The method further comprises: When receiving the Portal configuration instruction input by the user, a blank Portal configuration page is constructed; Determine the Portal configuration information corresponding to the Portal configuration instruction; Fill the Portal configuration information into the blank Portal configuration page to obtain an initial Portal configuration page; Binding the initial Portal configuration page with the authentication configuration list and the preset matching strategy to obtain a target Portal configuration page; The target Portal configuration is published to the cloud to ensure that the target Portal configuration page takes effect in real time.
5. The portal page display method according to claim 4, characterized in that: The method further comprises: When receiving a deletion instruction of the target Portal configuration page, determining whether the usage status of the target Portal page is in a used status; When it is determined that the usage state of the target Portal page is the used state, sending a deconfiguration binding instruction to the user, so that the user releases the use of the target Portal page; When it is determined that the usage state of the target Portal page is switched from the used state to the unused state, deleting the target Portal page; When it is determined that the usage state of the target Portal page is the unused state, the target Portal page is deleted.
6. The portal page display method according to claim 1, characterized in that: The method further comprises: When receiving the authentication configuration instruction input by the user, determining the identity authentication mechanism set carried by the authentication configuration instruction; Determine the authentication item corresponding to each identity authentication mechanism in the identity authentication mechanism set; Receiving a second authentication parameter corresponding to the authentication item set by the user through the client; The authentication configuration list is constructed based on the identity authentication mechanism set and the second authentication parameter.
7. The portal page display method according to claim 6, characterized in that: Before constructing the authentication configuration list based on the identity authentication mechanism set and the second authentication parameter, the method further includes: Verifying the second authentication parameter to obtain a verification result; When it is determined that the verification result is a passed verification, performing the operation of constructing the authentication configuration list based on the identity authentication mechanism set and the second authentication parameter; When it is determined that the verification result is a verification failure, a verification failure instruction is sent to the client, so that the user sets the second authentication parameter corresponding to the authentication item through the client.
8. A portal page display device, characterized in that: The device comprises: A determination module, configured to determine, when receiving an access request from a user, an identity authentication mechanism selected by the user from an authentication configuration list; A first matching module, used to match the Portal authentication page corresponding to the identity authentication mechanism from a preset database; A display module, used for displaying the Portal authentication page to the user through a client, so that the user enters a first authentication parameter based on the Portal authentication page; an authentication module, configured to, upon receiving the first authentication parameter, authenticate the first authentication parameter based on the identity authentication mechanism to obtain an authentication result; The second matching module is used to match the corresponding Portal authentication success page from the preset database based on a preset matching strategy for display when it is determined that the authentication result is successful.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the portal page display method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the portal page display method according to any one of claims 1 to 7 are implemented.