Disclosure of Invention
The embodiment of the invention provides a method, a system and a storage medium for integrating pages of a banking system, which at least solve the problems that a user is required to memorize a system domain name and function distribution and the user experience is poor due to difference between a system operation interface and an operation mode in the related technology.
According to the embodiment of the invention, through a back-end proxy forwarding pair mode, the function of which system belongs is identified according to menu configuration, the corresponding function is routed to the corresponding system, the background system returns data, and the front-end browser renders and displays a final effect according to style definition, so that user experience is improved.
According to an aspect of the embodiment of the present invention, there is provided a method for integrating pages of a banking system, including:
receiving an access request to a target system, constructing a real request address according to the access request, and forwarding the access request to a proxy system;
If the proxy system judges that the access request is effective, forwarding the access request to a corresponding target system;
If the proxy system judges that the access request is invalid, a session control check request is initiated and the authentication information is confirmed to be valid, the access request is forwarded to a corresponding target system;
Receiving data information returned by the target system, and displaying the data information through rendering;
The real request address comprises domain name information, request message header information and authentication information.
According to another aspect of the embodiment of the present invention, there is also provided a system for integrating pages of a banking system, including:
The forwarding module is used for receiving an access request to a target system, constructing a real request address according to the access request and forwarding the access request to the proxy system;
The authentication module is used for forwarding the access request to a corresponding target system if the proxy system judges that the access request is valid, and forwarding the access request to the corresponding target system after initiating a session control check request and confirming that the authentication information is valid if the proxy system judges that the access request is invalid;
The processing module is used for receiving the data information returned by the target system and displaying the data information through rendering processing;
The real request address comprises domain name information, request message header information and authentication information.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described method of banking system page integration when run.
In the embodiment of the invention, the access request is forwarded to the proxy system after the real request address is constructed according to the access request by receiving the access request to the target system, if the proxy system judges that the access request is valid, the access request is forwarded to the corresponding target system, if the proxy system judges that the access request is invalid, the proxy system initiates a session control check request and confirms that the authentication information is valid, then the access request is forwarded to the corresponding target system, the data information returned by the target system is received, and the data information is displayed by rendering, thereby solving the technical problems that the user is required to memorize the domain name and the function distribution of each system in the related art, and the system operation interface and the operation mode have poor user experience difference, and achieving the beneficial effects of improving the working efficiency and the better user experience.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Features of embodiments of the invention may be combined with each other without conflict.
According to an aspect of the embodiment of the present invention, there is provided a method for integrating pages of a banking system, optionally, as an optional implementation manner, the method for integrating pages of a banking system in this embodiment may be executed by a computer program, and may be applied to a terminal or a server or a similar computing device or an electronic apparatus. The computing device or electronic device may include, for example, one or more processors (which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory for storing data, and may also include a transmission device for communication functions and an input-output device. More or fewer components than are shown, or have a different configuration than shown. The memory may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for integrating pages of a banking system in an embodiment of the present invention, and the processor executes the computer program stored in the memory, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission means is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission means comprises a network adapter (Network Interface Controller, simply referred to as NIC) that can be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
For example, as an optional implementation manner, fig. 1 is a flowchart of a method for integrating pages of a banking system according to an embodiment of the present invention, where, as shown in fig. 1, the method for integrating pages of the banking system includes:
Step S101, receiving an access request to a target system, constructing a real request address according to the access request, and forwarding the access request to a proxy system;
specifically, when a user clicks a target system needing to enter a job in the job platform system, the job platform information receives an access request to the target system, searches a Uniform Resource Locator (URL) address of the target system in the configured parameter platform, constructs a real request address, and then initiates the access request to the proxy system.
Step S103, if the proxy system judges that the access request is effective, forwarding the access request to a corresponding target system;
Specifically, the access request is judged, mainly whether cookie information and session information are valid or not in the request message is judged, and in the case that the cookie information and the session information are valid, a proxy request is sent to the target system.
Step S105, if the agent system judges that the access request is invalid, the agent system initiates a session control check request and forwards the access request to a corresponding target system after confirming that the authentication information is valid;
Specifically, the access request is judged, whether cookie information and session information are valid or not is mainly judged, under the condition of failure, a checksession request is initiated, cookie information and session information are obtained, whether identity bill information is contained in the session of the target system is judged, if not, the identity bill information is created according to the login name and the token ring information, the identity bill information is stored in the session of the target system, and the session ID information is returned to the proxy system.
Step S107, receiving the data information returned by the target system, and displaying the data information through rendering;
The real request address comprises domain name information, request message header information and authentication information;
after the target system receives the access request sent by the proxy system, the authentication filter performs login authentication according to the fact that the access request forwarded to the target system contains the sessionID information returned by the previous request.
In addition, after receiving the data information returned by the target system, the browser automatically processes the data returned by the operation platform system and renders and displays the client information page according to the style, and the browser uses JS to call the style to render and display the dashboard graph.
Here, it should be noted that, the SESSION information may be stored through a web container, and then the SESSION id is jsesionid, and the Redids database stores the SESSION id of the SESSION as SESSION.
The method comprises the steps of receiving an access request to a target system, constructing a real request address according to the access request, forwarding the access request to an agent system, if the agent system judges that the access request is valid, forwarding the access request to a corresponding target system, if the agent system judges that the access request is invalid, initiating a session control check request and confirming that authentication information is valid, forwarding the access request to the corresponding target system, receiving data information returned by the target system, and displaying the data information in a rendering mode, thereby solving the technical problems that users are required to memorize domain names and function distribution of each system in the related art, and the system operation interface and operation mode have poor user experience difference, and achieving the beneficial effects of improving the working efficiency and the better user experience.
In one exemplary embodiment, the method includes:
the domain name information includes URL address information;
the request message header information comprises identity bill information (also called at bill information), and the identity bill information comprises login name information and token ring information (also called at bill information);
specifically, the token ring information is a token identity, represents a successful login state, and transmits current user information in a way of sharing the token ring through a cookie.
The authentication information includes cookie information and session control session information.
In one exemplary embodiment, constructing the real request address from the access request includes:
Searching target address URL address information according to appCode information of the target system;
Wherein appCode information refers to the number corresponding to the system and is a unique identifier.
Constructing a real request address according to the URL address information, the request message header information and the authentication information;
wherein the real request address is used to link the target system.
In an exemplary embodiment, if the proxy system determines that the access request fails, the step of initiating a session control check request and forwarding the access request to the corresponding target system after confirming that the authentication information is valid includes:
if the agent system judges that the access request fails, acquiring authentication information and judging whether the target system contains identity bill information or not;
specifically, under the condition of failure, cookie information in the message header information is obtained, and under the condition that the cookie information is not empty and valid, the jump to the proxy system is successful. If the cookie information is empty, login authentication fails.
If the identity bill information is contained, forwarding the access request to a corresponding target system;
If the identity bill information is not contained, the identity bill information is created, the access request is forwarded to a corresponding target system, the identity bill information is stored in the target system session information, and the target system returns the session ID information.
In one exemplary embodiment, forwarding the access request to the corresponding target system includes:
The access request message contains sessionID information returned by the target system;
the sessionID information is used for login authentication of the access target system.
In one exemplary embodiment, receiving data information returned by the target system includes:
and receiving page information data returned by the target system or json data return data.
In one exemplary embodiment, exposing the data information by the rendering process includes at least one of:
And rendering and displaying the client information page according to the style or rendering and displaying the dashboard graph by using JS call style.
In an exemplary embodiment, further comprising:
After the login of the operation platform system is successful, the identity bill information exists in session control session of the operation platform system;
the access request is forwarded by the agent through appProxy;
it should be noted that the present solution may be used by other proxy forwarding methods having the same effect.
FIG. 2 is a system block diagram of a banking system page integration, according to an embodiment of the present invention, as shown in FIG. 2, including:
a forwarding module 22, configured to receive an access request to a target system, and forward the access request to a proxy system after constructing a real request address according to the access request;
The authentication module 24 is configured to forward the access request to a corresponding target system if the proxy system determines that the access request is valid, and forward the access request to the corresponding target system after initiating a session control check request and confirming that authentication information is valid if the proxy system determines that the access request is invalid;
and the processing module 26 is used for receiving the data information returned by the target system and displaying the data information through rendering processing.
The real request address comprises domain name information, request message header information and authentication information.
It should be further noted that other implementations of this embodiment are the same as the above embodiments, and are not described herein.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in this embodiment, all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing the terminal device related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may include a flash disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logic function division, and there may be other division manners in which a practical implementation may be, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.