CN111880953A - Application program communication method and device, electronic equipment and storage medium - Google Patents

Application program communication method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111880953A
CN111880953A CN202010764811.4A CN202010764811A CN111880953A CN 111880953 A CN111880953 A CN 111880953A CN 202010764811 A CN202010764811 A CN 202010764811A CN 111880953 A CN111880953 A CN 111880953A
Authority
CN
China
Prior art keywords
server
authentication information
application program
browser
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010764811.4A
Other languages
Chinese (zh)
Inventor
杨超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Seeyon Internet Software Corp
Original Assignee
Beijing Seeyon Internet Software Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Seeyon Internet Software Corp filed Critical Beijing Seeyon Internet Software Corp
Priority to CN202010764811.4A priority Critical patent/CN111880953A/en
Publication of CN111880953A publication Critical patent/CN111880953A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides an application program communication method, an application program communication device, electronic equipment and a storage medium, which are used for solving the problem that the application program needs to be manually switched when a plurality of enterprise system software are used. The application program communication method comprises the following steps: receiving authentication information sent by a first server through a first application program of the electronic equipment, wherein the authentication information is obtained by sending the authentication information to the first server through a second server; forwarding the authentication information to a second application program of the electronic equipment through the first application program; sending authentication information to a second server through a second application program so that the second server obtains and sends target information, wherein the target information corresponds to the authentication information, and the first server and the second server are different servers; and receiving the target information sent by the second server through the second application program.

Description

Application program communication method and device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of computer data processing and data interaction, and in particular, to an application program communication method, apparatus, electronic device, and storage medium.
Background
Enterprise Resource Planning (ERP) system software, also called ERP system software, an ERP system or ERP for short, is Enterprise system software that creates a systematic management idea based on information technology and provides a management platform for decision-making operation means for Enterprise decision-making layers and employees.
Customer Relationship Management (CRM) system software, also called CRM system software, CRM system or CRM for short, refers to system software that is a combination of enterprise programs and information technologies for enterprises to know and distinguish customers from various angles to develop products or services suitable for individual needs of customers.
In current application communication environments, applications run on electronic devices that typically need to interact with multiple enterprise system software, such as: ERP system software and CRM system software, etc. The application requirements of the electronic device of each enterprise system software are different, and specific examples thereof are as follows: the ERP software needs a first application program (such as a Chrome browser) on the electronic device to normally operate, and the CRM software needs a second application program (such as an Internet Explorer browser, namely an IE browser) to normally operate. Thus, users need to manually switch applications when using multiple enterprise system software, as each enterprise system software requires different browser support.
Disclosure of Invention
An object of the embodiments of the present application is to provide an application communication method, an application communication apparatus, an electronic device, and a storage medium, which are used to solve the problem that an application needs to be manually switched when a plurality of enterprise system software are used.
The embodiment of the application provides an application program communication method, which comprises the following steps: receiving authentication information sent by a first server through a first application program of the electronic equipment, wherein the authentication information is obtained by sending the authentication information to the first server through a second server; forwarding the authentication information to a second application program of the electronic equipment through the first application program; sending authentication information to a second server through a second application program so that the second server obtains and sends target information, wherein the target information corresponds to the authentication information, and the first server and the second server are different servers; and receiving the target information sent by the second server through the second application program. In the implementation process, the second server sends the authentication information to the first server, and receives the authentication information sent by the first server by using a first application program of the electronic device; forwarding the authentication information to a second application of the electronic device using the first application; sending authentication information to a second server by using a second application program so that the second server obtains and sends target information, wherein the target information corresponds to the authentication information; then using a second application program to receive target information sent by a second server; that is to say, when data is accessed across servers, the authentication information is automatically forwarded by the application program, so that the server sends the target information after the authentication information is determined to be valid, and the condition that the target information is obtained by manually switching the application program when a plurality of enterprise system software is used is effectively avoided.
Optionally, in this embodiment of the present application, the first application is a first browser, the second application is a second browser, and a kernel of the first browser is different from a kernel of the second browser; forwarding, by the first application, the authentication information to a second application of the electronic device, comprising: calling a local service of the electronic equipment through the first browser; the authentication information is forwarded to a second browser of the electronic device through a local service of the electronic device. In the implementation process, the local service of the electronic equipment is called through the first browser, and the authentication information is forwarded to the second browser of the electronic equipment by using the local service of the electronic equipment; thereby effectively increasing the speed of forwarding the authentication information to the second application of the electronic device by the first application.
Optionally, in this embodiment of the present application, invoking a local service of the electronic device through the first browser includes: obtaining an assistant plug-in of a first browser; a native service of the electronic device is invoked using the helper plug-in of the first browser. In the implementation process, an assistant plug-in of the first browser is obtained; calling a local service of the electronic equipment by using the assistant plug-in of the first browser; thereby effectively increasing the speed of forwarding the authentication information to the second application of the electronic device by the first application.
Optionally, in this embodiment of the application, before forwarding, by the first application, the authentication information to the second application of the electronic device, the method further includes: receiving configuration information sent by a first server or a second server through a first application program, wherein the configuration information comprises a unique identifier of the second application program; forwarding, by the first application, the authentication information to a second application of the electronic device, comprising: and forwarding the authentication information to a second application program of the electronic equipment through the first application program according to the unique identifier of the second application program. In the implementation process, the first application program receives the unique identifier of the second application program sent by the first server or the second server, and the first application program forwards the authentication information to the second application program of the electronic device according to the unique identifier of the second application program, so that the flexibility of forwarding the authentication information to the second application program of the electronic device through the first application program is effectively improved.
Optionally, in an embodiment of the present application, the authentication information includes: a token identification and a link address; sending authentication information to the second server through the second application, including: resolving the link address to obtain a domain name address of the second server; and sending the link address and the token identification to the second server according to the domain name address of the second server. In the implementation process, the domain name address of the second server is obtained by analyzing the link address; sending a link address and a token identification to a second server according to the domain name address of the second server; therefore, the speed of obtaining the link address and the token identification by the electronic equipment is effectively improved.
Optionally, in this embodiment of the application, receiving, by a first application program of an electronic device, authentication information sent by a first server includes: receiving a token identification sent by a first server through a first application program, wherein the token identification is obtained by sending the token identification to the first server through a login interface of a second server; and receiving the link address sent by the first server through the first application program, wherein the link address is obtained by sending the link address to the first server through the data interface of the second server. In the implementation process, after the second server sends the link address and the token identifier to the first server, the first server sends the link address and the token identifier to the electronic device, and the electronic device receives the token identifier sent by the first server through the first application program; therefore, the speed of obtaining the link address and the token identification by the electronic equipment is effectively improved.
An embodiment of the present application further provides an application communication device, including: the authentication information receiving module is used for receiving authentication information sent by the first server through a first application program of the electronic equipment, and the authentication information is obtained by sending the authentication information to the first server by the second server; the authentication information forwarding module is used for forwarding the authentication information to a second application program of the electronic equipment through the first application program; the authentication information sending module is used for sending authentication information to the second server through the second application program so that the second server can obtain and send target information, the target information corresponds to the authentication information, and the first server and the second server are different servers; and the target information receiving module is used for receiving the target information sent by the second server through the second application program. In the implementation process, the second server sends the authentication information to the first server, and receives the authentication information sent by the first server by using a first application program of the electronic device; forwarding the authentication information to a second application of the electronic device using the first application; sending authentication information to a second server by using a second application program so that the second server obtains and sends target information, wherein the target information corresponds to the authentication information; then using a second application program to receive target information sent by a second server; that is to say, when data is accessed across servers, the authentication information is automatically forwarded by the application program, so that the server sends the target information after the authentication information is determined to be valid, and the condition that the target information is obtained by manually switching the application program when a plurality of enterprise system software is used is effectively avoided.
Optionally, in this embodiment of the present application, the first application is a first browser, the second application is a second browser, and a kernel of the first browser is different from a kernel of the second browser; an authentication information forwarding module comprising: the local service calling module is used for calling the local service of the electronic equipment through the first browser; and the first information forwarding module is used for forwarding the authentication information to a second browser of the electronic equipment through a local service of the electronic equipment.
Optionally, in this embodiment of the present application, the local service invoking module includes: an assistant plug-in obtaining module, configured to obtain an assistant plug-in of the first browser; and the assistant plug-in calling module is used for calling the local service of the electronic equipment by using the assistant plug-in of the first browser.
Optionally, in this embodiment of the present application, the application program communication device further includes: the configuration information receiving module is used for receiving configuration information sent by the first server or the second server through the first application program, and the configuration information comprises a unique identifier of the second application program; and the second information forwarding module is used for forwarding the authentication information to a second application program of the electronic equipment through the first application program according to the unique identifier of the second application program.
Optionally, in an embodiment of the present application, the authentication information includes: a token identification and a link address; an authentication information transmission module comprising: the link address analysis module is used for analyzing the link address to obtain the domain name address of the second server; and the address identifier sending module is used for sending the link address and the token identifier to the second server according to the domain name address of the second server.
Optionally, in an embodiment of the present application, the authentication information receiving module includes: the token identification receiving module is used for receiving a token identification sent by the first server through the first application program, and the token identification is obtained by sending the token identification to the first server through a login interface of the second server; and the link address receiving module is used for receiving the link address sent by the first server through the first application program, and the link address is obtained by sending the link address to the first server through the data interface of the second server.
An embodiment of the present application further provides an electronic device, including: a processor and a memory, the memory storing processor-executable machine-readable instructions, the machine-readable instructions when executed by the processor performing the method as described above.
Embodiments of the present application also provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the method as described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a schematic diagram illustrating an application communication method provided by an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an electronic device communicating with a first server using a Chrome browser according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating an electronic device communicating with a second server using an IE browser according to an embodiment of the present application;
FIG. 4 is a timing diagram illustrating interactions between an electronic device and a server provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of an application communication device provided in an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Before introducing the application communication method provided by the embodiment of the present application, some concepts related to the embodiment of the present application are introduced, and some concepts related to the embodiment of the present application are as follows:
application programs (apps), also called application software (apps), sometimes referred to as applications (apps) for short, are one of the main categories of computer software, and refer to computer programs written for a specific application purpose of a user, specifically, for example: text processors, forms, browsers, media players, image editors, and the like.
Office Automation (OA), which is the application of computers, electronic devices and software to digitally create, collect, store, process, and transmit information required to complete Office tasks; the storage of raw data, the management of electronic account transfer and electronic business information constitute the basic activities of the office automation system.
The OA system software is software capable of completing the system functions of office automation, so that task related personnel can share information more conveniently and rapidly, the high-efficiency cooperative work is realized, and the traditional complex and low-efficiency office work flow is greatly optimized.
Browser, refers to a software tool for accessing data on a server, where the browser includes: firefox browser, Chrome browser, Safari browser, IE browser, etc., the engines used by browsers are for example: a firefxdriver engine, an internet explorer driver engine, a ChromeDriver engine, etc., but in some cases, the browser engine may be used by two or more than two engines, for example: the customized browser uses an internet explorer driver engine and a ChromeDriver engine together.
The hypertext Transfer Protocol (HTTP) is a simple request response Protocol, which usually runs on top of a Transmission Control Protocol (TCP), and specifies what messages a client may send to a server and what responses it gets.
A server refers to a device that provides computing services over a network, such as: x86 server and non-x 86 server, non-x 86 server includes: mainframe, minicomputer, and UNIX server. Certainly, in a specific implementation process, the server may specifically select a mainframe or a minicomputer, where the mainframe refers to a dedicated processor that mainly supports a closed and dedicated device for providing Computing service of a UNIX operating system, and that uses Reduced Instruction Set Computing (RISC), single-length fixed-point instruction average execution speed (MIPS), and the like; a mainframe, also known as a mainframe, refers to a device that provides computing services using a dedicated set of processor instructions, an operating system, and application software.
It should be noted that the application communication method provided in the embodiments of the present application may be executed by an electronic device, where the electronic device refers to a device terminal having a function of executing a computer program or the server described above, and the device terminal includes, for example: a smart phone, a Personal Computer (PC), a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a network switch or a network router, and the like.
Before introducing the application communication method provided in the embodiment of the present application, an application scenario applicable to the application communication method is introduced, where the application scenario includes, but is not limited to: the application communication method is used for accessing system software of different servers across application programs, or application helper software is made by using the application communication method, so as to realize the function of accessing the system software of different servers, wherein the system software of different servers is as follows: ERP system software, CRM system software and the like.
Please refer to fig. 1, which is a schematic diagram illustrating an application communication method provided in an embodiment of the present application; the application program communication method can comprise the following steps:
step S110: the electronic equipment receives the authentication information sent by the first server through the first application program.
The first application program refers to an application program running on the electronic device, and the application program specifically includes: text processors, forms, browsers, media players, and image editors.
The first server refers to a server running first enterprise system software, where the first enterprise system software may be ERP system software or CRM system software, and the first enterprise system software running on the first server can be accessed through a first application program, specifically, for example: the first application program is a Chrome browser, the first enterprise system software is ERP system software or CRM system software, and the ERP system or the CRM system can only be normally accessed through the Chrome browser.
The authentication information refers to information required for authentication to authorize the electronic device to access the target resource in the second server, and specifically includes: the second server issues a temporary authentication to the electronic device, and the temporary authentication can be used for enabling the electronic device to access the target resource on the second server within a specified time range, and the temporary authentication can also be understood as authentication information. The authentication information may be obtained by sending the second server to the first server, and the first server sends the authentication information to the electronic device, where the authentication information may include: token identification and link address.
The above-mentioned embodiment of step S110 may include the following steps:
step S111: the electronic device receives the token identification sent by the first server through the first application program, and the token identification is obtained by sending the token identification to the first server through the login interface of the second server.
Token identity (token), also called identity token, refers to an identity of an authorized access token generated for a target resource, and specifically includes: the Windows operating system uses an Access Token (Access Token) to identify a user owning a process, where the Access Token refers to an object used by the Windows operating system to describe a security context of a process or a thread, and the Access Token can also be understood as a Token identifier.
The second server refers to a server running a second enterprise system software, where the second enterprise system software may be an enterprise system software such as OA system software, and the second server is a device different from the first server, and the second enterprise system software running on the second server can be accessed through a second application program, specifically for example: the second application is an IE browser, the second enterprise system software is OA system software, and the OA system can only be normally accessed through the IE browser. As can be seen from the above description, the first server running the first enterprise system software and the second server running the second enterprise system software may be different servers.
The embodiment of step S111 described above is, for example: the second server sends the token identification to the first server through the login interface; the first server receives the token identification sent by the second server and sends the token identification to the electronic equipment; the electronic equipment receives a token identification sent by a first server through a first application program; the login interface here has many embodiments, for example: the login interface is provided through a representation layer State Transfer (REST) framework, and the relative address of the login interface can be/auth/login and the like; REST, in turn, is referred to herein as RESTful, and refers to a web software architecture style aimed at facilitating the transfer of information between different software/programs over a network (e.g., the internet). Presentation layer state transitions are a set of constraints and attributes determined based on the HTTP protocol, a software build style designed to provide web services.
Step S112: the electronic equipment receives the link address sent by the first server through the first application program, and the link address is obtained by sending the link address to the first server through the data interface of the second server.
The embodiment of step S112 described above is, for example: the second server sends the link address to the first server through the data interface; the first server receives the link address sent by the second server and sends the link address to the electronic equipment; the electronic equipment receives the link address sent by the first server through the first application program; the data interface here has many embodiments, such as: a data interface is provided by Simple Object Access Protocol (SOAP), and a relative address of the data interface may be/data/get, for example; SOAP, herein, is an eXtensible Markup Language (XML) based protocol that can be used in conjunction with many existing Internet protocols and formats, including: HyperText Transfer Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), Multipurpose Internet Mail Extensions (MIME), which is based on a very general transport Protocol, is an advantage of SOAP.
In the implementation process, after the second server sends the link address and the token identifier to the first server, the first server sends the link address and the token identifier to the electronic device, and the electronic device receives the token identifier sent by the first server through the first application program; therefore, the speed of obtaining the link address and the token identification by the electronic equipment is effectively improved.
After step S110, step S120 is performed: the electronic device forwards the authentication information to a second application of the electronic device through the first application.
It is understood that the first application program may be a first browser, the second application program may be a second browser, and a kernel of the first browser and a kernel of the second browser may be different; specific examples thereof include: the first application is a Chrome browser, a Safari browser or a Firefox browser, and the second application is an IE browser, that is, the first application and the second application are both browsers, but their kernels are different, that is, they are different browsers.
The above-mentioned embodiment of the second application program that forwards the authentication information to the electronic device through the first application program includes:
in the first embodiment, the authentication information further includes the unique identifier of the target application, and the authentication information may be sent according to the unique identifier of the target application, where the target application may be the second application.
In a second embodiment, the first application program already includes an execution program, "if the received information is the authentication information, the authentication information is forwarded to the second application program by the first application program".
In a third embodiment, before forwarding the authentication information, configuration information is received from the first server or the second server, such that the first application sends the authentication information to the second application specified in the configuration information; the embodiment may specifically include: the electronic equipment receives configuration information sent by the first server or the second server through the first application program, wherein the configuration information comprises a unique identifier of the second application program; the electronic equipment receives authentication information sent by a first server through a first application program; the electronic equipment forwards the authentication information to a second application program of the electronic equipment through the first application program according to the unique identification of the second application program. In the implementation process, the first application program receives the unique identifier of the second application program sent by the first server or the second server, and the first application program forwards the authentication information to the second application program of the electronic device according to the unique identifier of the second application program, so that the flexibility of forwarding the authentication information to the second application program of the electronic device through the first application program is effectively improved.
In a fourth embodiment, authentication information is forwarded to a second browser of the electronic device by invoking a local service of the electronic device; for ease of understanding and explanation, the third embodiment will be described below as an example.
Step S121: the electronic equipment calls the local service of the electronic equipment through the first browser.
Local services, refer to locally initiated web services, such as: js service, Tomcat service, Nginx service, Lighttpd service, etc.; the Web service (Web service) is a service-oriented architecture technology, provides services through a standard Web protocol and aims to ensure that application services of different platforms can interoperate; the Web service is also a software system and is used for supporting the network service of the interactive operation of different machines among networks; network services are usually composed of a plurality of application program interfaces, and the network services can pass through a network, such as: through the remote server of the Internet, and executes the service request submitted by the client.
The above-mentioned embodiment of invoking the local service of the electronic device through the first browser includes: obtaining an assistant plug-in of a first browser; calling a local service of the electronic equipment by using the assistant plug-in of the first browser; the local service here includes: js service, Tomcat service, Nginx service, or Lighttpd service, the first browser may be a chrome browser, the helper plug-in may be, for example, a chrome browser helper plug-in or a remote browser helper plug-in, etc. In the implementation process, an assistant plug-in of the first browser is obtained; calling a local service of the electronic equipment by using the assistant plug-in of the first browser; thereby effectively increasing the speed of forwarding the authentication information to the second application of the electronic device by the first application.
Step S122: the electronic device forwards the authentication information to a second browser of the electronic device through the local service.
The above embodiment of the electronic device forwarding the authentication information to the second browser of the electronic device through the local service is, for example: the electronic device forwards the authentication information to a second browser of the electronic device through a Servlet service in the Tomcat service, where the second browser may be an IE browser, and the authentication information forwarded by the Servlet service is obtained through the IE browser.
Of course, in a specific implementation process, the above implementation manner of forwarding the authentication information to the second browser of the electronic device further includes: the process of the second browser can be opened in a manner that a windows operating system registers a user-defined Uniform Resource Locator (URL) protocol, and the authentication information is forwarded to the process of the second browser of the electronic device; the embodiment specifically includes, for example: if the operating system of the electronic device is a windows operating system, a corresponding sub-item can be added under the key HKEY _ CLASSES _ ROOT of the registry, and the content of the sub-item includes: the name of the URL protocol, the icon of the program file of the open protocol, the path of the program file and the parameters needed by the program file, etc.; the URL protocol name is, for example, test, then the URL can be added under the items HKEY _ CLASSES _ ROOT \ test, the parameters required by the path where the program file is located and the program file are added under the items HKEY _ CLASSES _ ROOT \ test \ Shell \ Open \ Command in the registry, and the program file can be a second browser; then, the first browser may forward the authentication information to the second browser by using a customized test protocol, which specifically includes: after the authentication information is input in the first browser, the windows operating system calls the second browser to receive the authentication information, where the authentication information may be test:// start/123, for example, although the authentication information may be specifically set according to the situation, and therefore, the specific content of the authentication information herein should not be construed as a limitation to the embodiment of the present application.
In the implementation process, the local service of the electronic equipment is called through the first browser, and the authentication information is forwarded to the second browser of the electronic equipment by using the local service of the electronic equipment; thereby effectively increasing the speed of forwarding the authentication information to the second application of the electronic device by the first application.
After step S120, step S130 is performed: the electronic device sends the authentication information to the second server through the second application program, so that the second server obtains and sends the target information, wherein the target information corresponds to the authentication information.
The target information is target information that is required by the electronic device and corresponds to the authentication information after the authentication information is confirmed, and the target information may be, for example: form data, device information data, pictures or videos, and the like.
The above-mentioned embodiment of sending the authentication information to the second server through the second application may include the following steps:
step S131: the electronic equipment resolves the link address to obtain a domain name address of the second server.
The embodiment of step S131 described above is, for example: if the link address is http:// www.B.com/b 1? When token is xx, resolving the link address, and obtaining that the domain name address corresponding to the link address is www.B.com; of course, in a specific implementation process, the domain name address may be further resolved, for example: sending a domain name resolution request containing www.B.com to a domain name server, and obtaining an IP address 220.220.220.220 corresponding to the domain name address; and then the link address and the token identification are sent to the second server according to the IP address.
Step S132: and the electronic equipment sends the link address and the token identification to the second server according to the domain name address of the second server.
The above-mentioned embodiment in which the electronic device sends the link address and the token identifier to the second server according to the domain name address of the second server is, for example: the electronic device sends a link address and a token identifier to the second server according to the domain name address of the second server through Asynchronous JavaScript and XML (Asynchronous JavaScript and XML, AJAX), wherein AJAX refers to a web page development technology for creating interactive web page application and is also a technology for creating a fast dynamic web page, and a technology for updating a part of web pages can be realized without reloading the whole web page.
In the implementation process, the domain name address of the second server is obtained by analyzing the link address; sending a link address and a token identification to a second server according to the domain name address of the second server; therefore, the speed of obtaining the link address and the token identification by the electronic equipment is effectively improved.
After step S130, step S140 is performed: and the electronic equipment receives the target information sent by the second server through the second application program.
The above-mentioned embodiment that the electronic device receives the target information sent by the second server through the second application program is, for example: the electronic equipment receives target information sent by the second server through a second application program by using a HyperText transfer protocol Secure (HTTPS); wherein, HTTPS is also called HTTPSecure, which is a transmission protocol for secure communication over a computer network; the main purpose of HTTPS development is to provide authentication to web servers, protecting the privacy and integrity of the exchanged data.
In the implementation process, the second server sends the authentication information to the first server, and receives the authentication information sent by the first server by using a first application program of the electronic device; forwarding the authentication information to a second application of the electronic device using the first application; sending authentication information to a second server by using a second application program so that the second server obtains and sends target information, wherein the target information corresponds to the authentication information; then using a second application program to receive target information sent by a second server; that is to say, when data is accessed across servers, the authentication information is automatically forwarded by the application program, so that the server sends the target information after the authentication information is determined to be valid, and the condition that the target information is obtained by manually switching the application program when a plurality of enterprise system software is used is effectively avoided.
In order to facilitate understanding of convenience of the user operating the electronic device, specific operations of the user of the electronic device are illustrated below, where the specific operations of the user include:
please refer to fig. 2, which is a schematic diagram illustrating an electronic device communicating with a first server by using a Chrome browser according to an embodiment of the present application; if the first application program of the electronic device is a Chrome browser, the second application program is an IE browser, the domain name of the first server is www.A.com, the domain name of the second server is www.B.com, the first enterprise system is an A system, and the second enterprise system is a B system; the user starts a Chrome browser on the electronic equipment, receives the link address sent by the first server by using the Chrome browser, opens the link address of the system A in the Chrome browser to access the first server, and can process the flow business of the system, such as the processing of 'to-do work', wherein the receipts B1, B2, B3 and B4 are all from the system B, and the user can click the receipt B1 in the system A on the Chrome browser.
Please refer to fig. 3, which is a schematic diagram illustrating an electronic device communicating with a second server using an IE browser according to an embodiment of the present application; when the user clicks on document b1 in system A on the Chrome browser, the address of the link to jump out is http:// www.B.com/b 1? the token can be understood as an access token, xx can be understood as a specific value of the access token, namely the token is identified as xx, the electronic device automatically starts an IE browser, opens a system B, and displays a B1 bill clicked by a user on an interface, and at this time, the user can operate the bill B1 in the system B; and after the document b1 is processed, closing the IE browser window.
Please refer to fig. 4, which illustrates a timing diagram of the interaction between the electronic device and the server according to the embodiment of the present application; for ease of understanding and explanation, the following example of using different browsers to access across enterprise systems illustrates one embodiment of the application communication method as follows:
step S210: the first server sends an information request to the second server, wherein the information request is used for obtaining the token identification and the link address.
Step S220: the second server sends the token identification and the link address to the first server.
Step S230: the first server receives the token identification and the link address sent by the second server and sends the token identification and the link address to the electronic equipment.
Step S240: the electronic equipment receives the token identification and the link address sent by the first server, and sends the token identification and the link address to the second server according to the link address, so that the second server obtains and sends target information corresponding to the token identification.
Step S250: and the electronic equipment receives the target information sent by the second server.
It can be understood that the implementation principle of the sending and receiving actions in steps S210 to S250 is similar or similar to that of the sending and receiving actions in the steps, and the sending and receiving actions may be sent and received by using an HTTP protocol or an HTTPs protocol, which is different only in the sending content, and therefore, detailed descriptions of the sending and receiving actions are omitted here.
In the implementation process, after the first server receives the token identifier and the link address sent by the second server, the first server sends the token identifier and the link address to the electronic device; the electronic equipment receives the token identification and the link address sent by the first server, and sends the token identification and the link address to the second server according to the link address so that the second server can obtain and send target information corresponding to the token identification, and the electronic equipment can obtain the required target information by crossing the servers in this way; therefore, when the electronic equipment carries out service docking on a plurality of enterprise systems, problems caused by cross-browser and cross-server web systems are solved, and finally seamless connection of the enterprise systems is achieved.
Please refer to fig. 5, which is a schematic diagram of an application communication device according to an embodiment of the present application; the embodiment of the present application provides an application communication device 300, including:
the authentication information receiving module 310 is configured to receive, by a first application program of the electronic device, authentication information sent by the first server, where the authentication information is obtained by sending, by the second server, to the first server.
And the authentication information forwarding module 320 is configured to forward the authentication information to a second application program of the electronic device through the first application program.
The authentication information sending module 330 is configured to send the authentication information to the second server through the second application program, so that the second server obtains and sends the target information, where the target information corresponds to the authentication information, and the first server and the second server are different servers.
And the target information receiving module 340 is configured to receive the target information sent by the second server through the second application.
Optionally, in this embodiment of the present application, the first application is a first browser, the second application is a second browser, and a kernel of the first browser is different from a kernel of the second browser; an authentication information forwarding module comprising:
and the local service calling module is used for calling the local service of the electronic equipment through the first browser.
And the first information forwarding module is used for forwarding the authentication information to a second browser of the electronic equipment through a local service of the electronic equipment.
Optionally, in this embodiment of the present application, the local service invoking module includes:
and the assistant plug-in obtaining module is used for obtaining the assistant plug-in of the first browser.
And the assistant plug-in calling module is used for calling the local service of the electronic equipment by using the assistant plug-in of the first browser.
Optionally, in this embodiment of the present application, the application program communication device further includes:
and the configuration information receiving module is used for receiving configuration information sent by the first server or the second server through the first application program, and the configuration information comprises the unique identifier of the second application program.
And the second information forwarding module is used for forwarding the authentication information to a second application program of the electronic equipment through the first application program according to the unique identifier of the second application program.
Optionally, in an embodiment of the present application, the authentication information includes: a token identification and a link address; an authentication information transmission module comprising:
and the link address resolution module is used for resolving the link address to obtain the domain name address of the second server.
And the address identifier sending module is used for sending the link address and the token identifier to the second server according to the domain name address of the second server.
Optionally, in an embodiment of the present application, the authentication information receiving module includes:
and the token identification receiving module is used for receiving the token identification sent by the first server through the first application program, and the token identification is obtained by sending the token identification to the first server through the login interface of the second server.
And the link address receiving module is used for receiving the link address sent by the first server through the first application program, and the link address is obtained by sending the link address to the first server through the data interface of the second server.
It should be understood that the apparatus corresponds to the above-mentioned embodiment of the application program communication method, and can perform the steps related to the above-mentioned embodiment of the method, and the specific functions of the apparatus can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device.
Please refer to fig. 6 for a schematic structural diagram of an electronic device according to an embodiment of the present application. An electronic device 400 provided in an embodiment of the present application includes: a processor 410 and a memory 420, the memory 420 storing machine-readable instructions executable by the processor 410, the machine-readable instructions when executed by the processor 410 performing the method as above.
The embodiment of the present application also provides a storage medium 430, where the storage medium 430 stores a computer program, and the computer program is executed by the processor 410 to perform the above application communication method.
The storage medium 430 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an alternative embodiment of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application.

Claims (10)

1. An application communication method applied to an electronic device includes:
receiving authentication information sent by a first server through a first application program of the electronic equipment, wherein the authentication information is obtained by sending the authentication information to the first server through a second server;
forwarding, by the first application, the authentication information to a second application of the electronic device;
sending the authentication information to the second server through the second application program so that the second server obtains and sends target information, wherein the target information corresponds to the authentication information, and the first server and the second server are different servers;
and receiving the target information sent by the second server through the second application program.
2. The method of claim 1, wherein the first application is a first browser and the second application is a second browser, and wherein a kernel of the first browser is different from a kernel of the second browser; the forwarding, by the first application program, the authentication information to a second application program of the electronic device includes:
calling a local service of the electronic equipment through the first browser;
forwarding, by a local service of the electronic device, the authentication information to a second browser of the electronic device.
3. The method of claim 2, wherein the invoking of the local service of the electronic device by the first browser comprises:
obtaining an assistant plug-in of the first browser;
invoking a local service of the electronic device using a helper plug-in of the first browser.
4. The method of claim 1, wherein prior to forwarding the authentication information to the second application of the electronic device by the first application, further comprising:
receiving, by the first application program, configuration information sent by the first server or the second server, where the configuration information includes a unique identifier of the second application program;
the forwarding, by the first application program, the authentication information to a second application program of the electronic device includes:
and forwarding the authentication information to a second application program of the electronic equipment through the first application program according to the unique identifier of the second application program.
5. The method of any of claims 1-4, wherein the authentication information comprises: a token identification and a link address; the sending, by the second application, the authentication information to the second server includes:
resolving the link address to obtain a domain name address of the second server;
and sending the link address and the token identification to the second server according to the domain name address of the second server.
6. The method of claim 5, wherein receiving, by the first application of the electronic device, the authentication information sent by the first server comprises:
receiving, by the first application program, the token identifier sent by the first server, where the token identifier is obtained by sending the token identifier to the first server through a login interface of the second server;
and receiving a link address sent by the first server through the first application program, wherein the link address is obtained by sending to the first server through a data interface of the second server.
7. An application communication device, applied to an electronic device, comprising:
the authentication information receiving module is used for receiving authentication information sent by a first server through a first application program of the electronic equipment, wherein the authentication information is obtained by sending the authentication information to the first server by a second server;
the authentication information forwarding module is used for forwarding the authentication information to a second application program of the electronic equipment through the first application program;
an authentication information sending module, configured to send the authentication information to the second server through the second application program, so that the second server obtains and sends target information, where the target information corresponds to the authentication information, and the first server and the second server are different servers;
and the target information receiving module is used for receiving the target information sent by the second server through the second application program.
8. The apparatus of claim 7, wherein the first application is a first browser and the second application is a second browser, and wherein a kernel of the first browser is different from a kernel of the second browser; the authentication information forwarding module comprises:
the local service calling module is used for calling the local service of the electronic equipment through the first browser;
and the first information forwarding module is used for forwarding the authentication information to a second browser of the electronic equipment through a local service of the electronic equipment.
9. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1 to 6.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, performs the method according to any one of claims 1 to 6.
CN202010764811.4A 2020-07-31 2020-07-31 Application program communication method and device, electronic equipment and storage medium Pending CN111880953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010764811.4A CN111880953A (en) 2020-07-31 2020-07-31 Application program communication method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010764811.4A CN111880953A (en) 2020-07-31 2020-07-31 Application program communication method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111880953A true CN111880953A (en) 2020-11-03

Family

ID=73205407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010764811.4A Pending CN111880953A (en) 2020-07-31 2020-07-31 Application program communication method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111880953A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067419A1 (en) * 2022-09-28 2024-04-04 中移(成都)信息通信科技有限公司 Authorization information acquisition method and apparatus, related device, and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194219A1 (en) * 2001-04-17 2002-12-19 Bradley George Wesley Method and system for cross-platform form creation and deployment
CN105389222A (en) * 2015-12-15 2016-03-09 中国科学院声学研究所 Method, apparatus and system for dynamically calling native interface
CN105844386A (en) * 2016-03-17 2016-08-10 中山艾华企业管理咨询有限公司 Enterprise data system based on browser/server mode
CN106528659A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 A control method and device for jumping from a browser to an application program
US20180006818A1 (en) * 2015-10-28 2018-01-04 Tencent Technology (Shenzhen) Company Limited Authentication method, device, server, and system, and storage medium
CN109768965A (en) * 2018-12-14 2019-05-17 广州华多网络科技有限公司 A kind of login method of server, equipment and storage device
US20190155668A1 (en) * 2016-07-27 2019-05-23 Alibaba Group Holding Limited Awakening an application by means of a mobile browser
US10462216B1 (en) * 2018-05-04 2019-10-29 Citrix Systems, Inc. WebRTC API redirection with interception techniques
CN111226429A (en) * 2018-09-21 2020-06-02 思杰系统有限公司 System and method for intercepting and enhancing SAAS application calls via an embedded browser
CN111290865A (en) * 2020-02-10 2020-06-16 腾讯科技(深圳)有限公司 Service calling method and device, electronic equipment and storage medium
CN111352740A (en) * 2018-12-21 2020-06-30 腾讯科技(深圳)有限公司 Application interaction processing method and device
US20210081521A1 (en) * 2019-09-16 2021-03-18 Didi Research America, Llc Method for exchanging data between a web browser and an application

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194219A1 (en) * 2001-04-17 2002-12-19 Bradley George Wesley Method and system for cross-platform form creation and deployment
US20180006818A1 (en) * 2015-10-28 2018-01-04 Tencent Technology (Shenzhen) Company Limited Authentication method, device, server, and system, and storage medium
CN105389222A (en) * 2015-12-15 2016-03-09 中国科学院声学研究所 Method, apparatus and system for dynamically calling native interface
CN105844386A (en) * 2016-03-17 2016-08-10 中山艾华企业管理咨询有限公司 Enterprise data system based on browser/server mode
US20190155668A1 (en) * 2016-07-27 2019-05-23 Alibaba Group Holding Limited Awakening an application by means of a mobile browser
CN106528659A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 A control method and device for jumping from a browser to an application program
US10462216B1 (en) * 2018-05-04 2019-10-29 Citrix Systems, Inc. WebRTC API redirection with interception techniques
CN111226429A (en) * 2018-09-21 2020-06-02 思杰系统有限公司 System and method for intercepting and enhancing SAAS application calls via an embedded browser
CN109768965A (en) * 2018-12-14 2019-05-17 广州华多网络科技有限公司 A kind of login method of server, equipment and storage device
CN111352740A (en) * 2018-12-21 2020-06-30 腾讯科技(深圳)有限公司 Application interaction processing method and device
US20210081521A1 (en) * 2019-09-16 2021-03-18 Didi Research America, Llc Method for exchanging data between a web browser and an application
CN111290865A (en) * 2020-02-10 2020-06-16 腾讯科技(深圳)有限公司 Service calling method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"链路容量调整机制在大数据通信网建设中的应用研究", 《东北电力技术》 *
XINXIN LI 等: "Modeling Web Application for cross-browser Compatibility Testing", 《IEEE》 *
马行 等: "应用系统跨浏览器认证方法研究与实现", 《DOI:10.16184/J.CNKI.COMPRG.2019.08.060》, pages 1 - 3 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067419A1 (en) * 2022-09-28 2024-04-04 中移(成都)信息通信科技有限公司 Authorization information acquisition method and apparatus, related device, and storage medium

Similar Documents

Publication Publication Date Title
US20220276910A1 (en) Dynamically integrating a client application with third-party services
US10708252B2 (en) Configuring credentials to faciltate sharing data in a secure manner
US20210073051A1 (en) Late connection binding for bots
US11522851B2 (en) Secured rest execution inside headless web application
US9189649B2 (en) Security model for workflows aggregating third party secure services
US11799841B2 (en) Providing intercommunication within a system that uses disparate authentication technologies
JP5893641B2 (en) How to provide assistance to end users of software applications
US7984170B1 (en) Cross-domain communication in domain-restricted communication environments
US10367890B2 (en) Maintain single session with a single application across multiple clients
US8799515B1 (en) Rewriting of client-side executed scripts in the operation of an SSL VPN
JP7397174B2 (en) System and method for mobile digital currency future exchange
US8103607B2 (en) System comprising a proxy server including a rules engine, a remote application server, and an aspect server for executing aspect services remotely
Aguilar SignalR Programming in Microsoft ASP. NET
EP2904740B1 (en) Method and system for communicating within a messaging architecture using a structured data object
CN111880953A (en) Application program communication method and device, electronic equipment and storage medium
US12095764B2 (en) Authentication interface rendering and mirroring in a distributed architecture
US20190279157A1 (en) Automated business transaction creation for email system
US11343242B2 (en) Dynamic connection across systems in real-time
CN114253632A (en) Function call request processing method and device and server
US11755681B2 (en) Real-time equivalent user interaction generation
CN113824696B (en) Portal authentication method and device
CN109218270B (en) Method and device for processing hijacked request
WO2023235425A1 (en) Intelligent access redirection
WO2022250642A1 (en) Method and system for co-browsing a web page
CN117971370A (en) User interface display method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination