Method, device, system and program product for accessing heterogeneous Web information system
By obtaining and encrypting token information in heterogeneous web information systems, the problem of single sign-on failure under new versions of browsers is solved, data transmission security and access rights are ensured, and the effective use of OAuth2 mode is realized.
Patent Information
- Application Number
- CN202311148711.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2024-10-18
AI Technical Summary
In heterogeneous web information systems, some new versions of browsers cannot implement single sign-on through the iframe architecture due to security restrictions, resulting in the inability to use the OAuth2 mode for data access.
By establishing a communication connection between the secret key server and the business system, the target secret key information of the target business system is obtained, and the token information is encrypted based on the secret key information to ensure the security of data transmission, thereby preventing the browser from accessing the authentication server again. Unable to obtain token information.
It ensures the security of data transmission under the new version of the browser, while avoiding single sign-on failure, overcoming the data access problems caused by browser restrictions, and meeting the security and communication requirements of the micro front-end.
Smart Images

Figure CN118802200A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer network security, and in particular to a method, device, system and program product for accessing a heterogeneous Web information system. Background Art
[0002] Currently, if Figure 1 As shown, in the heterogeneous Web information system, the mobile business system and each business subsystem adopts the iframe integration method, quickly locates the module by numbering, and embeds the homepage in the iframe method to realize one-page processing of the business, avoiding the problem of repeated window jumping in the traditional integration method.
[0003] In the authentication process of heterogeneous Web information systems, each business system implements system access through single sign-on, that is, each business subsystem needs to apply for a token from the authentication server separately, and access the resource server through the token. The authentication server and the resource server share the token for legitimacy authentication.
[0004] However, since the iframe integration method adopts a micro-frontend architecture, in browsers such as the new version of Google Chrome and IE7, in order to prevent CSRF attacks and user tracking, the SameSite attribute of the cookie is used to limit third-party cookies, resulting in the iframe being unable to obtain cookie information across domains. When the browser accesses the authentication server again, since the authentication server has already been logged in for the first time and the browser's own cookie mechanism is limited, the authentication server cannot apply for tokens for each business subsystem when it determines that the user has logged in, resulting in the inability to implement single sign-on for each business subsystem through the browser. Summary of the invention
[0005] The embodiments of the present application provide a method, device, system and program product for accessing a heterogeneous Web information system, so as to solve the technical problem that single sign-on of each business subsystem cannot be achieved through the browser.
[0006] In a first aspect, an embodiment of the present application provides a method for accessing a heterogeneous Web information system, which is applied to a first business system, wherein the first business system is respectively communicated with a key server and at least one second business system, and the key server includes target key information corresponding to each of the first business system and the at least one second business system, and the method includes:
[0007] In response to the user's operation instruction, determine the token information and the target business system, wherein the target business system is any second business system of the at least one second business system;
[0008] Obtaining target key information corresponding to the target business system sent by the key server;
[0009] Determining encrypted token information based on the target key information and the token information;
[0010] The encrypted token information is sent to the target business system.
[0011] In one embodiment, according to the access method of the heterogeneous Web information system provided by the embodiment of the present application, the determining of the encrypted token information based on the target key information and the token information includes:
[0012] Determine a first concatenated string based on the business parameter and the token information;
[0013] Based on the target secret key information, the first concatenated character string is encrypted to obtain encrypted token information.
[0014] In one embodiment, according to the method for accessing a heterogeneous Web information system provided by an embodiment of the present application, the target key information includes: the key sub-information and access address of the target business system;
[0015] The step of encrypting the first concatenated string based on the target key information to obtain encrypted token information includes:
[0016] Encrypting the first concatenated string based on the secret key information to obtain an encrypted string;
[0017] Concatenate the encrypted string and the access address to obtain a concatenated string;
[0018] The concatenated character string is integrated through an iframe method to determine the encrypted token information.
[0019] In one embodiment, according to the heterogeneous Web information system access method provided by the embodiment of the present application, the obtaining of the target key information corresponding to the target business system sent by the key server includes:
[0020] Determine the target identification information corresponding to the target business system;
[0021] Based on the target identification information, determine first target key request information, and send the first target key request information to the key server, where the first target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information;
[0022] Receive the target key information corresponding to the target business system sent by the key server.
[0023] In a second aspect, an embodiment of the present application provides a method for accessing a heterogeneous Web information system, which is applied to a target business system, wherein the target business system is any second business system, and the target business system is connected to a key server and a resource server, and the method includes:
[0024] Obtaining the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server;
[0025] Determining token information based on the target key information and the encrypted token information;
[0026] Based on the token information, resource request information is sent to the resource server, where the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
[0027] In one embodiment, according to the heterogeneous Web information system access method provided by the embodiment of the present application, obtaining the target key information corresponding to the target business system sent by the key server includes:
[0028] Obtaining target identification information corresponding to the target business system;
[0029] Determine second target key request information based on the target identification information, and send the second target key request information to the key server, where the second target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information;
[0030] Receive the target key information corresponding to the target business system sent by the key server.
[0031] In a third aspect, an embodiment of the present application provides an access device for a heterogeneous Web information system, which is applied to a first business system, wherein the first business system is respectively communicated with a key server and at least one second business system, wherein the key server includes target key information corresponding to each of the first business system and the at least one second business system, and the device includes:
[0032] A first determination module is used to: respond to the user's operation instruction, determine the token information and the target business system, the target business system is any second business system in the at least one second business system;
[0033] A first acquisition module is used to: acquire target key information corresponding to the target business system sent by the key server;
[0034] A second determination module is used to: determine encrypted token information based on the target key information and the token information;
[0035] The first sending module is used to send the encrypted token information to the target business system.
[0036] In a fourth aspect, an embodiment of the present application provides an access device for a heterogeneous Web information system, which is applied to a target business system, wherein the target business system is any second business system, and the target business system is connected to a key server and a resource server, and the device includes:
[0037] The second acquisition module is used to: acquire the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server;
[0038] A third determination module is used to: determine token information based on the target key information and the encrypted token information;
[0039] The second sending module is used to: send resource request information to the resource server based on the token information, and the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
[0040] In a fifth aspect, an embodiment of the present application further provides a heterogeneous Web information system, comprising: a first business system, at least one second business system, a key server, a resource server, and an authentication server, wherein the first business system is respectively communicated with the key server, the resource server, the authentication server, and the at least one second business system, and the at least one server is connected to the key server and the resource server; wherein:
[0041] The authentication server is used to: send token information to the first business system;
[0042] The first business system is used to: execute any one of the above-mentioned methods for accessing a heterogeneous Web information system;
[0043] Any second business system of the at least one second business system is used to: execute any of the above-mentioned methods for accessing a heterogeneous Web information system;
[0044] The key server is used to: send target key information to the first business system and / or any second business system among the at least one second business system;
[0045] The resource server is used to: when the token information authentication is successful, send access page information corresponding to the target business system to the client corresponding to the user, and the target business system is any second business system.
[0046] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for accessing a heterogeneous Web information system described in the first aspect or the second aspect.
[0047] The access method, device, system and program product of the heterogeneous Web information system provided in the embodiments of the present application determine the token information in response to the user operation, and determine the target business system from at least one second business system, and further obtain the target key information corresponding to the target business system, encrypt the token information by the target key information to obtain the encrypted token information, and send the encrypted token information to the target business system, thereby ensuring the security of data transmission and avoiding the problem that the browser cannot obtain the token information when accessing the authentication server again, thereby failing to use some new versions of browsers to complete single sign-on in oauth2 mode, thereby overcoming the limitations of using some browsers for data access. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 It is a flow chart of a heterogeneous Web information system provided by the prior art;
[0050] Figure 2 This is one of the flow diagrams of the single sign-on method provided by the prior art;
[0051] Figure 3 This is the second flow chart of the single sign-on method provided by the prior art;
[0052] Figure 4 This is one of the flow diagrams of the method for accessing a heterogeneous Web information system provided in the embodiment of the present application;
[0053] Figure 5 This is the second flow chart of the method for accessing a heterogeneous Web information system provided in the embodiment of the present application;
[0054] Figure 6This is the third flow chart of the method for accessing a heterogeneous Web information system provided in the embodiment of the present application;
[0055] Figure 7 This is one of the example page diagrams of the target business system provided in the embodiment of the present application;
[0056] Figure 8 This is the second example page diagram of the target business system provided in the embodiment of the present application;
[0057] Fig. 9 This is the third example page diagram of the target business system provided in the embodiment of the present application;
[0058] Fig.10 This is one of the structural schematic diagrams of the access device of the heterogeneous Web information system provided in the embodiment of the present application;
[0059] Fig.11 This is the second structural diagram of the access device of the heterogeneous Web information system provided in the embodiment of the present application;
[0060] Fig.12 It is a schematic diagram of the structure of a heterogeneous Web information system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] At present, in heterogeneous Web information systems, the mobile business support system and each business subsystem are integrated using iframes, and each business subsystem is accessed through a single sign-on method. At present, under the microservice architecture, the single sign-on method is implemented based on the authorization code mode of the OAuth2 protocol. That is, in multiple business subsystems, users only need to log in once to access all other mutually trusted business subsystems. Figure 2 It is one of the flow charts of the single sign-on method provided by the prior art, such as Figure 2As shown, the heterogeneous Web information system includes: a first business system, at least one second business system, a resource server and an authentication server. Taking any second business system as the target business system as an example, the first business system and the target business system can respectively apply for token information access_token from the authentication server. After obtaining the token information access_token, the token information access_token can be carried to access the resource server. The resource server shares the token information with the authentication server. After the resource server confirms that the token information is correct, it returns the API result of the first business system or the target business system. It should be noted that the authentication server is an authentication server based on the OAuth2 protocol.
[0063] Specifically, Figure 3 This is the second flow chart of the single sign-on method provided by the prior art, such as Figure 3 As shown, in the prior art, the specific process of single sign-on is as follows:
[0064] 1. The user opens the first business system;
[0065] 2. The first business system determines that the user is not logged in and redirects to the authentication server;
[0066] 3. The authentication server returns the authentication page;
[0067] 4. The user agrees to the authorization (enters the user name and password), and the authentication server successfully authenticates;
[0068] 5. The authentication server redirects to the first business system and issues token information to the first business system;
[0069] 6. The first business system uses the token information to request user login information;
[0070] 7. The authentication server returns the user login information;
[0071] 8. The first business system uses the token information to obtain resources from the resource server;
[0072] 9. The resource server displays resources and renders the page of the first business system after login;
[0073] 10. The user opens the second business system page;
[0074] 11. The second business system determines that the user is not logged in and redirects to the authentication server;
[0075] 12. The authentication server determines that the user has logged in;
[0076] 13. The authentication server redirects to the second business system, and the second business system issues a token;
[0077] 14. The second business system uses the token to obtain resources from the resource server;
[0078] 15. The resource server displays resources and renders the interface of the second business system after login.
[0079] At present, some new versions of browsers have security restrictions, such as the new version of Google browser and IE7. In order to prevent CSRF attacks and user tracking, the browser restricts third-party cookies through the SameSite attribute of cookies, thereby reducing security risks. In other words, if a third-party login component is called, third-party cookies can be completely prohibited, and when cross-site, cookies will not occur under any circumstances.
[0080] However, the existing business support system using iframe architecture adopts micro-front-end architecture due to the iframe integration method. However, iframe cannot obtain cookie information across domains under some new versions of browsers. When the browser accesses the authentication server again, since the user has logged in to the authentication server, based on the cookie / session mechanism, the authentication server will determine that the user has logged in. Under the iframe architecture, some new versions of browsers cannot apply for tokens for each subsystem, and thus some new versions of browsers cannot be used to complete single sign-on in oauth2 mode, and the use of oauth2.0 protocol is restricted.
[0081] In view of the above problems, an embodiment of the present application provides a method for accessing a heterogeneous Web information system, which is applied to a first business system, wherein the first business system is respectively communicated with a key server and at least one second business system, and the key server includes target key information corresponding to each of the first business system and the at least one second business system. Figure 4 This is one of the flow charts of the method for accessing a heterogeneous Web information system provided in the embodiment of the present application, such as Figure 4 As shown, the method includes:
[0082] Step 410: respond to the user's operation instruction, determine the token information and the target business system, and the target business system is any second business system in the at least one second business system.
[0083] Specifically, after a user opens a first business system, a corresponding first operation instruction is generated. After the first business system receives the first operation instruction from the user and the user logs in, the first business system obtains token information access_token from the authentication server, and carries the token information to obtain resources from the resource server. After the resource server confirms that the token information is correct, it opens the resources to the first business system and displays the resources on the client, that is, the page rendered by the first business system is displayed on the client. Afterwards, in response to the user operation, after the user opens the target business system, a corresponding second operation instruction is generated. After receiving the second operation instruction, the first business system determines the target identification information corresponding to the target business system from at least one second business system.
[0084] It should be noted that the process of the first business system acquiring token information is the same as that in the prior art, and will not be elaborated in the embodiment of the present application.
[0085] Optionally, the first business system or the target business system is a system developed according to different business fields and business needs to execute specific business processes. The first business system and each second business system are mutually trusted systems, that is, there is an association relationship between the first business system and each second business system to achieve data sharing and process optimization. On the one hand, there is an integration relationship between the first business system and each second business system, and mutual integration can be achieved through an application program interface or middleware. For example, the operation management background includes a data statistics display function and a message configuration function. The data statistics display function corresponds to the data statistics system, and the message configuration function corresponds to the configuration system. The operation management background implements the data statistics display function by calling the data statistics system, and implements the message configuration function by calling the configuration system to improve management efficiency. On the other hand, the first business system and each second business system may have a dependency relationship. For example, in the data management system, a data report is generated by calling a report generation system.
[0086] Optionally, executing the business process corresponding to the first business system or the target business system may determine business information, and the business information may include: customer information, product or service information, transaction information, employee information, financial information, market sales information, production supply chain information, legal compliance information, log activity records, and technology research and development information, wherein:
[0087] Customer information may include information such as customer name, contact information, account information, purchase history and preferences. Product or service information may include descriptions of the products or services provided, specifications, prices and inventory status. Transaction information may include information such as orders, invoices, payments, deliveries and returns. Employee information may include employee personal information, job responsibilities, wages and training records. Financial information may include the company's financial statements, assets, liabilities, revenues and costs. Marketing information may include market analysis, marketing activities, sales channels and competitive intelligence. Production supply chain information may include production processes, inventory management, supplier information and procurement records. Legal compliance information may include legal documents, contracts and regulatory compliance records. Log activity records: including system logs, user activity records and event records. Technical research and development information may include information such as research and development projects, technical specifications and intellectual property rights.
[0088] Optionally, on the one hand, the first business system and each second business system can run in different devices, which may include servers, mobile devices, embedded devices, etc., to meet different business needs and usage scenarios. The server can be located in the data center of the enterprise or the environment of the cloud service provider, the mobile device can include smart phones and tablets, etc., and the embedded device can include industrial automation systems and smart home devices, etc. The operating system in the device may include Windows, Linux, and macOS, etc., which is convenient for providing functions such as management of computing resources, process control, and file system access. At the same time, there is a network connection between the devices corresponding to the first business system and each second business system to achieve data transmission or data sharing between different devices. On the other hand, the first business system and each second business system can run in the same device, that is, the first business system and each second business system can be understood as different services, each service is designed to complete specific business needs, and in a distributed system, each service can also be provided to other business systems or applications through the network as an independent functional module. Each business system in the first business system and each second business system can run in one or more processes, and these processes can be processed in parallel to improve the efficiency of task execution.
[0089] Optionally, the above token information access_token includes key information for identification and control in the identity authentication process to implement a secure identity authentication and authorization mechanism and protect the security of user data and resources. The token information may include: user identification, access rights, token expiration time, client information and issuer information, where:
[0090] 1) The user identification indicates that the accessed token information is associated with a specific user so that the server can determine which user requested and used the token information.
[0091] 2) Access rights are the permission information of the resource or operation requested by the user. The access rights can be a range, which specifies the level of resources or operations that the user can access.
[0092] 3) The access token information has a token expiration time. Once the token expiration time is reached, the user needs to re-authenticate to obtain new token information. The token expiration time can be expressed in the form of a timestamp.
[0093] 4) The client information may be information of the client application corresponding to the token information, and may specifically include a client ID or a client name.
[0094] 5) The issuer information may be the information of the authentication server that issues the token to ensure the authenticity of the token information.
[0095] Step 420: Obtain target key information corresponding to the target business system sent by the key server.
[0096] Further, the obtaining of the target key information corresponding to the target business system sent by the key server includes:
[0097] Determine the target identification information corresponding to the target business system;
[0098] Based on the target identification information, determine first target key request information, and send the first target key request information to the key server, where the first target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information;
[0099] Receive the target key information corresponding to the target business system sent by the key server.
[0100] Specifically, by determining the target identification information corresponding to the target business system, the first target secret key request information can be further generated through the target identification information, and after sending the first target secret key request information to the secret key server, the target secret key information corresponding to the target business system is obtained from the secret key server, so as to encrypt the token information according to the target secret key information. The secret key server stores the identification information, secret key sub-information, access address information and other information corresponding to each business system. After receiving the target identification information corresponding to the target business system, the secret key server matches each identification information. After matching the target business system, the secret key sub-information and access address information corresponding to the target business system are determined as the target secret key information of the target business system, and the target secret key information is returned to the first business system.
[0101] It should be noted that the target key information corresponding to each second business system can be the same or different. When the target key information corresponding to each second business system is different, the encryption token information corresponding to each second business system cannot be shared. Even if any second business system is compromised, it will not affect the security of other second business systems. Therefore, the security when the target key information corresponding to each second business system is different is higher than the security when the target key information corresponding to each second business system is the same.
[0102] Step 430: Determine encrypted token information based on the target key information and the token information.
[0103] Further, the determining the encrypted token information based on the target key information and the token information includes:
[0104] Determine a first concatenated string based on the business parameter and the token information;
[0105] Based on the target secret key information, the first concatenated character string is encrypted to obtain encrypted token information.
[0106] Specifically, after obtaining the business parameters, the first business system concatenates the token information access_token and the business parameters to obtain a first concatenated string posturl. The format of the first concatenated string posturl can be: A=xxx&B=xx&C=xxx&D=xxx. By way of example, taking the business parameters including login information login_no and operation code op_code as an example, after concatenating the business parameters and the token information access_token, the first concatenated string obtained is: posturl="login_no="+login_no+"&op_code="+op_code+"&accesstoken="+accesstoken. After obtaining the first concatenated string, the first concatenated string posturl is encrypted according to the encryption algorithm corresponding to the key sub-information in the target key information to obtain encrypted token information. The target key information and the token information are double encrypted to ensure the security of the encrypted token information obtained and the secure transmission between the business systems.
[0107] Optionally, the business parameters may be variable parameters or setting parameters used to adjust business processes, system behaviors or decision rules. The business parameters may include: pricing strategy parameters, inventory threshold parameters, security setting parameters, report notification parameters, workflow parameters, product feature switch parameters, tax rules and tax rate parameters, transportation logistics parameters, service agreement parameters, market analysis parameters, financial model parameters, user interface parameters, compliance parameters, data analysis parameters and time parameters, etc., where:
[0108] Pricing strategy parameters include the price, discount, promotion rules, etc. of a product or service. Inventory threshold parameters are used to determine when a product needs to be reordered or restocked. Security setting parameters include access control, password policy, and authentication methods. Report notification parameters are used to determine which events or conditions will trigger reports or notifications. Workflow parameters include configuring business processes, automation rules, and approval mechanisms. Product feature switch parameters are used to control whether different features or functions of a product or service are available. Tax rules and tax rate parameters include tax rules, tax rates, and tax policies. Transportation logistics parameters include transportation methods, delivery times, freight calculation rules, etc. Service agreement parameters are used to define service levels, response times, and support levels. Market analysis parameters are used to define variables for market research and analysis. Financial model parameters include profit model parameters, loss model parameters, financial forecast parameters, etc. User interface parameters include parameters for configuring the appearance, language, and theme of the user interface. Compliance parameters are used to determine rules and policies that comply with regulations and industry standards. Data analysis parameters include defining variables, algorithms, and conditions for data analysis and mining. Time parameters include working days, holidays, and time zone settings, etc.
[0109] Furthermore, the target key information includes: key sub-information and access address of the target business system;
[0110] The step of encrypting the first concatenated string based on the target key information to obtain encrypted token information includes:
[0111] Encrypting the first concatenated string based on the secret key information to obtain an encrypted string;
[0112] Concatenate the encrypted string and the access address to obtain a concatenated string;
[0113] The concatenated character string is integrated through an iframe method to determine the encrypted token information.
[0114] Specifically, after obtaining the target secret key information and splicing to obtain the first spliced string, the first spliced string is first encrypted by the encryption algorithm corresponding to the secret key sub-information in the target secret key information to obtain the encrypted string encrystring, ensuring the security of the token information and business parameters during the transmission process, and then the encrypted string and the access address of the target business system are spliced to obtain the spliced string, and the splicing format is http: / / ip address:port / access address / encrystring, the spliced string is the URL (Uniform Resource Locator), and the spliced string is integrated through the iframe method to obtain the encrypted token information. For example, create an HTML page containing an iframe element, and obtain the reference of the iframe element through JavaScript, and set its src attribute to the spliced string. When iframe.src is called, the page content corresponding to the above URL can be loaded and displayed.
[0115] Optionally, the encryption algorithms corresponding to the above-mentioned secret key sub-information may include MD5 (Message Digest Algorithm 5), AES (Advanced Encryption Standard), RSA (asymmetric encryption algorithm), ECC (elliptic curve encryption) and HMAC (hash-based message authentication code), etc., which are not limited to the embodiments of the present application.
[0116] Step 440: Send the encrypted token information to the target business system.
[0117] Specifically, after the encrypted token information is determined, the encrypted token information is sent to the target business system, so that the target business system can decrypt the encrypted token information and obtain the token information, and carry the token information to authenticate to the resource server and obtain resources, so as to avoid the failure to obtain the token information when the browser accesses the authentication server again, thus failing to use some new versions of browsers to complete the single sign-on in the oauth2 mode, thus overcoming the limitations of using some browsers for data access. At the same time, each business system is deployed separately, isolated from each other, and can communicate with each other during operation, meeting the requirements of micro front-ends.
[0118] The access method for a heterogeneous Web information system provided in an embodiment of the present application determines token information after responding to a user operation, determines a target business system from at least one second business system, and further obtains target key information corresponding to the target business system, encrypts the token information by means of the target key information to obtain encrypted token information, and sends the encrypted token information to the target business system, thereby ensuring the security of data transmission and avoiding the problem that some new versions of browsers cannot be used to complete single sign-on in oauth2 mode due to the inability to obtain token information when the browser accesses the authentication server again, thereby overcoming the limitations of using some browsers for data access.
[0119] The embodiment of the present application also provides a method for accessing a heterogeneous Web information system, which is applied to a target business system, wherein the target business system is any second business system, and the target business system is connected to a key server and a resource server. Figure 5 This is a second flow chart of a method for accessing a heterogeneous Web information system provided in an embodiment of the present application. Figure 5 As shown, the method includes:
[0120] Step 510: Obtain the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server.
[0121] Specifically, after the first business system determines and sends the encrypted token information to the target business system, the target business system obtains the encrypted token information and further requests the target key information corresponding to the target business system from the key server to decrypt the encrypted token information using the target key information.
[0122] Furthermore, Figure 6 This is a flowchart of a method for accessing a heterogeneous Web information system provided in an embodiment of the present application. Figure 6 As shown, obtaining the target key information corresponding to the target business system sent by the key server includes:
[0123] Obtaining target identification information corresponding to the target business system;
[0124] Determine second target key request information based on the target identification information, and send the second target key request information to the key server, where the second target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information;
[0125] Receive the target key information corresponding to the target business system sent by the key server.
[0126] Specifically, after obtaining the encrypted token information sent by the first business system, further obtain the target identification information corresponding to the target business system itself, which may be a unique number or identity code corresponding to the target business system. Generate the second target key request information based on the target identification information, and send the second target key request information to the key server, so that the key server can match the stored identification information after receiving the second target key request information, and after matching the target business system, determine the key sub-information and access address information corresponding to the target business system as the target key information of the target business system, and return the target key information to the target business system.
[0127] Step 520: Determine token information based on the target key information and the encrypted token information.
[0128] Specifically, after obtaining the target key information, the encrypted token information is decrypted according to the decryption algorithm corresponding to the key sub-information in the target key information, and the first concatenated string posturl can be obtained. After further parameter parsing of the first concatenated string posturl, the token information can be obtained, thereby avoiding the browser being unable to obtain the token information when accessing the authentication server again, resulting in login failure.
[0129] For example, the parameter parsing code of the first concatenated string posturl is as follows:
[0130]
[0131] Step 530: Send resource request information to the resource server based on the token information, wherein the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
[0132] Specifically, after decrypting the token information, the resource request information can be generated according to the token information, and the resource request information can be sent to the resource server, so that the resource server can authenticate the token information in the resource request information after receiving the resource request information. It should be noted that the resource server and the authentication server share the token information. After the resource server determines that the token information is correct, it opens the resource to the client, and further renders the page of the target business system for page display.
[0133] For example, taking the electronic channel workbench displayed by the client as the first business system, different second business systems are integrated in the electronic channel workbench, such as data management systems, configuration systems, and market management systems. These second business systems can exist independently, but are interconnected with the electronic channel workbench to achieve more comprehensive functions. After the user logs in to the electronic channel workbench, if the comprehensive statistical report is further opened, that is, the target business system is determined to be the data management system corresponding to the comprehensive statistical report. After calling the data management system, the data management system can obtain the encrypted token information sent by the electronic channel workbench, and after obtaining the target key information from the key server, decrypt the encrypted token information to obtain the token information, and carry the token information to obtain resources from the resource server. After the resource server confirms that the token information is correct, it can open the resources to the electronic channel workbench, render and display such as Figure 7 The corresponding page of the comprehensive statistical report is shown.
[0134] In addition, after the user clicks on the message configuration, the target business system can be further determined as the configuration system. After confirming that the token information is correct, the resources can be opened to the electronic channel workbench, rendering and displaying such as Figure 8 The page corresponding to the marketing configuration shown, or Fig. 9 The page corresponding to the message configuration is shown.
[0135] The access method of the heterogeneous Web information system provided in the embodiment of the present application obtains the encrypted token information sent by the first business system, obtains the target key information from the key server, decrypts the encrypted token information by the target key information, obtains the token information, and obtains the resource from the resource server by the token information, thereby ensuring the security of data transmission and avoiding the problem that the browser cannot obtain the token information when accessing the authentication server again, thereby failing to use some new versions of browsers to complete single sign-on in oauth2 mode, thereby overcoming the limitations of using some browsers for data access.
[0136] The following describes an access device for a heterogeneous Web information system provided in an embodiment of the present application. The access device for a heterogeneous Web information system described below and the access method for a heterogeneous Web information system described above can refer to each other.
[0137] The embodiment of the present application also provides an access device for a heterogeneous Web information system, which is applied to a first business system, wherein the first business system is respectively connected to a key server and at least one second business system for communication, and the key server includes target key information corresponding to the first business system and the at least one second business system, Fig.10 is one of the structural diagrams of the access device of the heterogeneous Web information system provided in the embodiment of the present application, such as Fig.10As shown, the access device 1000 of the heterogeneous Web information system includes: a first determination module 1010, a first acquisition module 1020, a second determination module 1030 and a first sending module 1040, wherein:
[0138] The first determination module 1010 is used to: respond to the user's operation instruction, determine the token information and the target business system, the target business system is any second business system in the at least one second business system;
[0139] The first acquisition module 1020 is used to: acquire the target key information corresponding to the target business system sent by the key server;
[0140] The second determination module 1030 is used to: determine encrypted token information based on the target key information and the token information;
[0141] The first sending module 1040 is used to send the encrypted token information to the target business system.
[0142] The access device for a heterogeneous Web information system provided in an embodiment of the present application determines token information after responding to user operations, determines a target business system from at least one second business system, and further obtains target key information corresponding to the target business system, encrypts the token information by means of the target key information to obtain encrypted token information, and sends the encrypted token information to the target business system, thereby ensuring the security of data transmission and avoiding the problem that some new versions of browsers cannot be used to complete single sign-on in oauth2 mode due to the inability to obtain token information when the browser accesses the authentication server again, thereby overcoming the limitations of using certain browsers for data access.
[0143] Optionally, the first acquisition module 1020 is specifically configured to:
[0144] Determine the target identification information corresponding to the target business system;
[0145] Determine first target key request information based on the target identification information, and send the first target key request information to the key server, where the first target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information;
[0146] Receive the target key information corresponding to the target business system sent by the key server.
[0147] Optionally, the second determining module 1030 is specifically configured to:
[0148] Determine a first concatenated string based on the business parameter and the token information;
[0149] Based on the target secret key information, the first concatenated character string is encrypted to obtain encrypted token information.
[0150] Optionally, the target key information includes: key sub-information and access address of the target business system.
[0151] Optionally, the second determining module 1030 is specifically configured to:
[0152] Encrypting the first concatenated string based on the secret key information to obtain an encrypted string;
[0153] Concatenate the encrypted string and the access address to obtain a concatenated string;
[0154] The concatenated character string is integrated through an iframe method to determine the encrypted token information.
[0155] The embodiment of the present application also provides an access device for a heterogeneous Web information system, which is applied to a target business system, wherein the target business system is any second business system, and the target business system is connected to a key server and a resource server. Fig.11 This is a second structural diagram of the access device of the heterogeneous Web information system provided in the embodiment of the present application, such as Fig.11 As shown, the access device 1100 of the heterogeneous Web information system includes: a second acquisition module 1110, a third determination module 1120 and a second sending module 1130, wherein:
[0156] The second acquisition module 1110 is used to: acquire the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server;
[0157] A third determination module 1120 is used to: determine token information based on the target key information and the encrypted token information;
[0158] The second sending module 1130 is used to: send resource request information to the resource server based on the token information, and the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
[0159] The access device for a heterogeneous Web information system provided in an embodiment of the present application obtains the encrypted token information sent by the first business system, obtains the target key information from the key server, decrypts the encrypted token information by the target key information, obtains the token information, and obtains resources from the resource server by the token information, thereby ensuring the security of data transmission and avoiding the problem that some new versions of browsers cannot be used to complete single sign-on in oauth2 mode due to the inability to obtain token information when the browser accesses the authentication server again, thereby overcoming the limitations of using certain browsers for data access.
[0160] Optionally, the second acquisition module 1110 is specifically configured to:
[0161] Obtaining target identification information corresponding to the target business system;
[0162] Determine second target key request information based on the target identification information, and send the second target key request information to the key server, where the second target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information;
[0163] Receive the target key information corresponding to the target business system sent by the key server.
[0164] The present application also provides a heterogeneous Web information system. Fig.12 is a schematic diagram of the structure of a heterogeneous Web information system provided in an embodiment of the present application, such as Fig.12 As shown, the heterogeneous Web information system includes: a first business system, at least one second business system, a key server, a resource server and an authentication server, wherein the first business system is respectively connected to the key server, the resource server, the authentication server and the at least one second business system in communication, and the at least one server is connected to the key server and the resource server; wherein:
[0165] The authentication server is used to: send token information to the first business system;
[0166] The first business system is used to: execute any one of the above-mentioned methods for accessing a heterogeneous Web information system;
[0167] Any second business system of the at least one second business system is used to: execute any of the above-mentioned methods for accessing a heterogeneous Web information system;
[0168] The key server is used to: send target key information to the first business system and / or any second business system among the at least one second business system;
[0169] The resource server is used to: when the token information authentication is successful, send access page information corresponding to the target business system to the client corresponding to the user, and the target business system is any second business system.
[0170] Specifically, the steps of accessing the heterogeneous Web information system are as follows:
[0171] 1) In response to a user operation, the first business system is opened on the client;
[0172] 2) The first business system determines that the user is not logged in and redirects to the authentication server;
[0173] 3) The authentication server returns the authentication page;
[0174] 4) In response to the user's operation, after the user agrees to the authorization (enter the user name and password), the authentication server successfully authenticates;
[0175] 5) The authentication server redirects to the first business system and issues token information to the first business system;
[0176] 6) The first business system uses the token information to request user login information;
[0177] 7) The authentication server returns the user login information;
[0178] 8) The first business system uses the token information to obtain resources from the resource server;
[0179] 9) The resource server displays resources and renders the page of the first business system after login;
[0180] 10) In response to the user operation, the second business system is opened on the client;
[0181] 11) The first business system obtains the target key information of the target business system according to the target identification information of the target business system;
[0182] 12) The key server returns the target key information of the target business system to the first business system;
[0183] 13) The first business system encrypts the encrypted token information consisting of the token information and the business parameters according to the target secret key information;
[0184] 14) The target business system obtains the target key information of the target business system according to the target identification information of the target business system;
[0185] 15) The key server returns the target key information of the target business system to the target business system;
[0186] 16) The target business system decrypts the encrypted token information to obtain the token information and business parameters;
[0187] 17) The target business system uses the token information to obtain resources from the resource server;
[0188] 18) After confirming that the token information is correct, the resource server opens resources to the client, displays the resources, and renders the target business system page after login.
[0189] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product including a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can perform the steps of the heterogeneous Web information system access method provided in the above embodiments, for example, including:
[0190] In response to the user's operation instruction, determine the token information and the target business system, wherein the target business system is any second business system of the at least one second business system;
[0191] Obtaining target key information corresponding to the target business system sent by the key server;
[0192] Determining encrypted token information based on the target key information and the token information;
[0193] Sending the encrypted token information to the target business system;
[0194] or,
[0195] Obtaining the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server;
[0196] Determining token information based on the target key information and the encrypted token information;
[0197] Based on the token information, resource request information is sent to the resource server, where the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
[0198] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to execute the steps of the method for accessing a heterogeneous Web information system provided in the above embodiments, for example, including:
[0199] In response to the user's operation instruction, determine the token information and the target business system, wherein the target business system is any second business system of the at least one second business system;
[0200] Obtaining target key information corresponding to the target business system sent by the key server;
[0201] Determining encrypted token information based on the target key information and the token information;
[0202] Sending the encrypted token information to the target business system;
[0203] or,
[0204] Obtaining the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server;
[0205] Determining token information based on the target key information and the encrypted token information;
[0206] Based on the token information, resource request information is sent to the resource server, where the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
[0207] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0208] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0209] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0210] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for accessing a heterogeneous Web information system, characterized in that: Applied to a first business system, the first business system is respectively connected to a key server and at least one second business system in communication, the key server includes target key information corresponding to the first business system and the at least one second business system, the method includes: In response to the user's operation instruction, determine the token information and the target business system, wherein the target business system is any second business system of the at least one second business system; Obtaining target key information corresponding to the target business system sent by the key server; Determining encrypted token information based on the target key information and the token information; The encrypted token information is sent to the target business system.
2. The method for accessing a heterogeneous Web information system according to claim 1, characterized in that: The step of determining encrypted token information based on the target key information and the token information includes: Determine a first concatenated string based on the business parameter and the token information; Based on the target secret key information, the first concatenated character string is encrypted to obtain encrypted token information.
3. The method for accessing a heterogeneous Web information system according to claim 2, characterized in that: The target key information includes: the key sub-information and access address of the target business system; The step of encrypting the first concatenated string based on the target key information to obtain encrypted token information includes: Encrypting the first concatenated string based on the secret key information to obtain an encrypted string; Concatenate the encrypted string and the access address to obtain a concatenated string; The concatenated character string is integrated through an iframe method to determine the encrypted token information.
4. The method for accessing a heterogeneous Web information system according to any one of claims 1 to 3, characterized in that: The obtaining the target key information corresponding to the target business system sent by the key server includes: Determine the target identification information corresponding to the target business system; Based on the target identification information, determine first target key request information, and send the first target key request information to the key server, where the first target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information; Receive the target key information corresponding to the target business system sent by the key server.
5. A method for accessing a heterogeneous Web information system, characterized in that: Applied to a target business system, the target business system is any second business system, the target business system is connected to a key server and a resource server, and the method includes: Obtaining the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server; Determining token information based on the target key information and the encrypted token information; Based on the token information, resource request information is sent to the resource server, where the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
6. The method for accessing a heterogeneous Web information system according to claim 5, characterized in that: Obtaining target key information corresponding to the target business system sent by the key server, including: Obtaining target identification information corresponding to the target business system; Determine second target key request information based on the target identification information, and send the second target key request information to the key server, where the second target key request information is used to instruct the key server to determine the target key information corresponding to the target business system according to the target identification information; Receive the target key information corresponding to the target business system sent by the key server.
7. An access device for a heterogeneous Web information system, characterized in that: Applied to a first business system, the first business system is respectively connected to a key server and at least one second business system in communication, the key server includes target key information corresponding to the first business system and the at least one second business system, and the device includes: A first determination module is used to: respond to the user's operation instruction, determine the token information and the target business system, the target business system is any second business system in the at least one second business system; A first acquisition module is used to: acquire target key information corresponding to the target business system sent by the key server; A second determination module is used to: determine encrypted token information based on the target key information and the token information; The first sending module is used to send the encrypted token information to the target business system.
8. An access device for a heterogeneous Web information system, characterized in that: Applied to a target business system, the target business system is any second business system, the target business system is connected to a key server and a resource server, and the device includes: The second acquisition module is used to: acquire the encrypted token information sent by the first business system and the target key information corresponding to the target business system sent by the key server; A third determination module is used to: determine token information based on the target key information and the encrypted token information; The second sending module is used to: send resource request information to the resource server based on the token information, and the resource request information is used to instruct the resource server to send access page information corresponding to the target business system to the client corresponding to the user when the token information is successfully authenticated.
9. A heterogeneous Web information system, characterized in that: include: A first business system, at least one second business system, a key server, a resource server and an authentication server, wherein the first business system is respectively connected to the key server, the resource server, the authentication server and the at least one second business system in communication, and the at least one server is connected to the key server and the resource server; wherein: The authentication server is used to: send token information to the first business system; The first business system is used to: execute the method for accessing a heterogeneous Web information system according to any one of claims 1 to 4; Any second business system of the at least one second business system is used to: execute the access method of the heterogeneous Web information system according to claim 5 or 6; The key server is used to: send target key information to the first business system and / or any second business system among the at least one second business system; The resource server is used to: when the token information authentication is successful, send access page information corresponding to the target business system to the client corresponding to the user, and the target business system is any second business system.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for accessing a heterogeneous Web information system described in any one of claims 1 to 4 are implemented, or the steps of the method for accessing a heterogeneous Web information system described in claim 5 or 6 are implemented.
Citation Information
Cited By
Systems and methods for application security improvements
US12743492B2
Systems and methods for application security improvements
US20260057041A1
