Data transmission method, device, equipment, and computer program
The data transmission method and device address inefficiencies in user permission management by using a second application program to create and manage authorization sets, enhancing privacy protection and reducing costs through shared processing loads.
Patent Information
- Application Number
- JP2023520506
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-12-29
- Filing Date
- 2021-12-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Existing data transmission methods in online collaborative documents lack effective privacy protection for collaboration targets and are inefficient in setting and managing user permissions, leading to high maintenance costs and exposure of sensitive information.
A data transmission method and device that utilizes a second application program to create and manage authorization target sets, allowing multiple targets to be added and set simultaneously, while keeping target information private from the first application program, and performing authentication through the second program to reduce processing load on the first program.
Enhances configuration efficiency, improves information security by protecting target information privacy, and reduces maintenance costs by sharing processing loads between application programs.
Smart Images

Figure 0007542737000007 
Figure 0007542737000013 
Figure 0007542737000015
Abstract
Description
[Technical field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application is filed based on a Chinese patent application bearing application number 202011602703.3, filed with the China Patent Office on December 29, 2020, and claims priority to the Chinese patent application, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of computer technology, in particular to the field of data processing technology, and in particular to a data transmission method, a data transmission device, an electronic device, a computer-readable storage medium and a computer program product. [Background technology]
[0003] An online collaborative document (hereinafter referred to as document) in a first application program (e.g., a document application program) is a document that supports online editing and collaborative editing by multiple collaborators (or referred to as collaborative targets), and a collaborative target of a document refers to at least one user (or referred to as target) who has operation authority for the document and can operate the document, for example, a collaborative target can view the document and edit the document.
[0004] In the related technology, collaboration targets are added and configured one by one by a first application program, the collaboration target's information (including target information and authority information) is managed by the first application program, and when the collaboration target operates a document, the first application program performs authentication based on the collaboration target's information. There are several problems with the above technical solution. One is that the collaboration target's information needs to be fully disclosed to the first application program, which is a prerequisite for adding a collaboration target, so privacy protection cannot be performed for the collaboration target's information. Another is that the collaboration target configuration efficiency is low and maintenance costs are high. Summary of the Invention [Means for solving the problem]
[0005] The embodiments of the present application provide a data transmission method, device, equipment, storage medium, and computer program product that can efficiently provide effective privacy protection for collaborative information and ensure information security.
[0006] An embodiment of the present application provides a data transmission method, the data transmission method including: running a first application program on the first terminal; acquiring a request target identifier and a document identifier of the document in response to an operation request for the document in a first application program; obtaining an authority object set identifier of the document based on the document identifier, the authority object set identifier being used to represent one authority object set having operation authority of the document, the authority object set being created by a second application program, and the authority object set including a plurality of authority object identifiers; sending an authorization authentication request for the requested target identifier to the second application program, the authorization authentication request being used to trigger the second application program to perform an authentication process for the requested target identifier based on the authorization target set identifier and return an authentication result, the authorization authentication request including the authorization target set identifier and the requested target identifier; and outputting a response screen for the operation request based on the authentication result returned from the second application program.
[0007] An embodiment of the present application provides a data transmission method, the data transmission method including: receiving an authority authentication request for a requested target identifier sent by a first application program, the authority authentication request including an authority object set identifier and the requested target identifier, the first application program being executed on the first terminal, the first application program obtaining the requested target identifier and a document identifier of the document in response to an operation request for a document in the first application program, and obtaining an authority object set identifier of the document based on the document identifier, the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set is created by a second application program, and the authority object set includes multiple authority object identifiers; performing an authentication process on the request object identifier based on the authorization object set identifier to obtain an authentication result; and sending the authentication result to the first application program.
[0008] An embodiment of the present application provides a data transmission device, the data transmission device comprising: an acquiring unit configured to execute a first application program on the first terminal, and acquire a request object identifier and a document identifier of the document in response to an operation request for the document in the first application program; The acquiring unit is further configured to acquire an authority object set identifier of the document according to the document identifier, the authority object set identifier is used to represent an authority object set having operation authority of the document, and the authority object set is created by a second application program, and the authority object set includes a plurality of authority object identifiers; a sending unit configured to send an authorization authentication request for the requested target identifier to the second application program, the authorization authentication request being used to trigger the second application program to perform an authentication process for the requested target identifier based on the authorization target set identifier and return an authentication result, the authorization authentication request including the authorization target set identifier and the requested target identifier; and a processing unit configured to output a response screen for the operation request based on the authentication result returned from the second application program.
[0009] An embodiment of the present application provides a data transmission device, the data transmission device comprising: a receiving unit configured to receive an authority authentication request for a requested object identifier sent by a first application program, the authority authentication request including an authority object set identifier and the requested object identifier, where the first application program is executed on the first terminal, and the first application program obtains the requested object identifier and a document identifier of the document in response to an operation request for a document in the first application program, and obtains an authority object set identifier of the document based on the document identifier, the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set is created by a second application program, and the authority object set includes a plurality of authorized object identifiers; A processing unit configured to perform an authentication process on the request object identifier based on the authorized object set identifier to obtain an authentication result; a sending unit configured to send the authentication result to the first application program.
[0010] An embodiment of the present application provides an electronic device for data transmission, the electronic device comprising: A processor for implementing a computer program; and a computer-readable storage medium having stored thereon a computer program for causing a processor to load and execute the above data transmission method.
[0011] An embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when read and executed by a processor of a computing device, causes the computing device to execute the above-described data transmission method.
[0012] An embodiment of the present application provides a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium, the computer instructions being read by a processor of an electronic device from the computer-readable storage medium and executed by the processor to cause the electronic device to perform the above-mentioned data transmission method.
[0013] The embodiments of the present application have the following beneficial effects:
[0014] The authority object set can be used to add and configure one authority object set including multiple authorization objects at one time, so as to grant document authorization to multiple collaborative objects, thereby effectively improving the efficiency of configuring collaborative objects; the authority object set is created and managed by the second application program, and information of each object in the authority object set does not need to be disclosed to the first application program, so that privacy protection can be efficiently achieved for the information of each object in the authority object set and information security can be improved; when a requesting object initiates an operation request to a document in the first application program, it will be authenticated by the second application program, thus effectively sharing the processing load of the first application program and improving the processing efficiency of document data. [Brief description of the drawings]
[0015] [Figure 1] 1 shows a schematic diagram of the architecture of a data transmission system according to an embodiment of the present application; [Diagram 2]4 shows an exemplary flow chart of the steps of creating an authority object set according to an embodiment of the present application; [Diagram 3] 4 shows an exemplary flow chart of an authority object set binding phase according to an embodiment of the present application; [Figure 4] 1 shows an exemplary flow chart of an authentication stage according to an embodiment of the present application. [Diagram 5] 1 shows an exemplary flow chart of an authentication stage according to an embodiment of the present application. [Figure 6] 2 illustrates an exemplary flowchart of a data transmission method according to an embodiment of the present application. [Figure 7a] 1 shows a schematic diagram of a response screen according to an embodiment of the present application. [Figure 7b] 1 shows a schematic diagram of a response screen according to an embodiment of the present application. [Figure 8] 2 illustrates an exemplary flowchart of a data transmission method according to an embodiment of the present application. [Figure 9] 2 illustrates an exemplary flowchart of a data transmission method according to an embodiment of the present application. [Figure 10] 1 illustrates an exemplary structural diagram of a data transmission device according to an embodiment of the present application; [Figure 11] 1 illustrates an exemplary structural diagram of a data transmission device according to an embodiment of the present application; [Figure 12] 1 shows an exemplary structural diagram of an electronic device for data transmission according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, the technical solutions of the embodiments of the present application will be described clearly and completely with reference to the drawings of the embodiments of the present application, and obviously, the described embodiments are only a part of the embodiments of the present application, and are not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts shall be included in the protection scope of the present application.
[0017] The embodiment of the present application relates to an online collaborative document. An online collaborative document (hereinafter referred to as document) is a document that supports online editing, online storage, and collaborative editing by multiple collaborative objects. The collaborative object of a document may refer to an authorized object of the document, that is, one or more objects that have operation authority of the document and can operate the document, where the operation authority includes but is not limited to viewing authority, modification authority, etc., that is, a collaborative object with viewing authority can view the document, and a collaborative object with editing authority can edit the document.
[0018] The first application program refers to a document application program that can manage documents, that is, the first application program can realize document creation, document operation, document authority management, document storage, etc. The first application program supports setting a first type of collaborative object for a document, and the first type of collaborative object refers to one or more objects that have the operation authority for a document and can operate the document after the operation authority is set by the first application program, and the first type of collaborative object is managed by the first application program. The first application program can set an object in the second application program as the first type of collaborative object for a document, and the second application program refers to an application program other than the first application program, for example, the second application program may be an instant messaging application program, a social conversation application program, etc.
[0019] Taking the first application program as an example, the second application program as an instant messaging application program, the specific scenario of setting the first type of collaboration target is as follows: when the first target of the instant messaging application program wants to set the second target of the instant messaging application program as the first type of collaboration target through the document application program, the document application program obtains the target information (which may be, for example, the identifier of the second target) and the authority information (which may be, for example, the type of operation authority) of the second target from the instant messaging application program, and then the document application program sets the second target as the first type of collaboration target. and set operation authority corresponding to the object, and set the second object as a first type of collaborative object of the document; or when a first object of an instant messaging application program wants to set multiple second objects in a multi-party chat of the instant messaging application program as first type of collaborative objects through a document application program, the document application program needs to obtain object information and authority information of each second object in the multi-party chat from the instant messaging application program, so that the document application program can sequentially configure operation authority corresponding to each second object in the multi-party chat, and set the multiple second objects in the multi-party chat one by one as the first type of collaborative objects of the document.As can be seen, the first type of collaborative object is set for a single object, the first application program needs to set the first type of collaborative object one by one, the first type of collaborative object is managed by the first application program, and the first application program needs to manage the information of the first type of collaborative object (including object information and authority information), so that the information of the first type of collaborative object in the second application program is fully disclosed to the first application program, and when there is an operation request initiated for a document in the first application program, the first application program needs to authenticate the requesting object based on the information of the first type of collaborative object.
[0020] Based on the requirement of privacy protection for collaborative object information, the embodiment of the present application proposes the concept of a second type collaborative object. The second type collaborative object refers to a set of authorized objects created and managed by a second application program, the set of authorized objects includes one or more authorized object identifiers, and all authorized objects corresponding to each authorized object identifier in the set of authorized objects have the operation authority of the document. The set of authorized objects is managed by a second application program, and the set of authorized objects identifiers (also called the authorized set collaborative object identifier) of the set of authorized objects is managed by a first application program. The biggest difference between the first type collaborative object and the second type collaborative object is that whether an object is a second type collaborative object of a document is not set or determined by the first application program, but is set or determined by the second application program.
[0021] Taking the first application program as an example, the second application program as an instant messaging application program, a specific scenario of setting the second type of collaboration object is as follows: the instant messaging application program is created by an enterprise, and a certain object of the instant messaging application program (for example, may be an administrator of the instant messaging application program or any specific object) wants to set all objects in a certain department of the enterprise as the second type of collaboration object of document, the instant messaging application program applies for an authority object set identifier of an authority object set to the document application program, and when the instant messaging application program receives that the document application program is the authority object set identifier generated for the authority object set, the instant messaging application program can create an authority object set based on the authority object set identifier, and add the object information (for example, may be the authorized object identifier) and authority information (for example, may be the type of operation authority) of all objects in the department to the authority object set, the authority object set is the second type of collaboration object of document, and all the authorized objects corresponding to each authority object identifier in the authority object set have the operation authority of the document. It can be seen from this that, by using the authority object set, one authority object set can be added and set as a second type of collaborative object of a document at a time, thus effectively improving the setting efficiency of collaborative objects; in addition, the authority object set is created and managed by the second application program, and the information of each object in the authority object set does not need to be disclosed to the first application program, so that the privacy protection requirement for the information of each object in the authority object set can be met; furthermore, when a requesting object initiates an operation request to a document in the first application program, it will be authenticated by the second application program based on the information of the collaborative objects in the authority object set, thus effectively sharing the processing load of the first application program and reducing the management and maintenance costs.
[0022] It should be noted that the documents referred to in the embodiments of the present application are associated with a second application program, for example, the document may be published to the first application program by a subject of the second application program (e.g., an administrator of the second application program, or any particular subject in the second application program).
[0023] The following briefly introduces the configurations of the first application program and the second application program mentioned in the embodiments of the present application. The first application program may be a web application program, a mobile or desktop application program, or a mini program, etc. The first application program includes a client of the first application program, an open background of the first application program, and an authority background of the first application program. The second application program includes a client of the second application program and a background of the second application program. Here, 1. First application program (1) The open background of a first application program is used to establish a communication connection between the authority background of the first application program and the second application program, and to realize data interaction between the authority background of the first application program and the second application program.
[0024] (2) The authority background of the first application program is used to perform authority management on a document in the first application program in response to an authority management request of a client of the first application program, the authority management request including a collaboration target addition request or a collaboration target deletion request. A document collaboration target list of the document is maintained in the authority background of the first application program, the document collaboration target list includes one or more collaboration target identifiers (e.g., may be a first type collaboration target identifier or may be an authority target set identifier (i.e., a second type collaboration target identifier)), and each collaboration target identifier in the document collaboration target list has operation authority for the document. The authority background of the first application program adds a target object identifier or a target authority object set identifier selected by the client of the first application program to the document collaboration target list in response to the collaboration target addition request of the client of the first application program, and the collaboration target addition request has (includes) a target object identifier or a target authority object set identifier to be added. The authority background of the first application program can also, in response to a collaboration target deletion request from the client of the first application program, delete one or more target collaboration target identifiers selected from the document collaboration target list by the client of the first application program from the document collaboration target list, where the target or authority target set corresponding to the deleted target collaboration target identifiers does not have document operation authority, and the collaboration target deletion request includes one or more target collaboration target identifiers to be deleted.
[0025] (3) The client of the first application program is used to display a document in the first application program and provide some document operation options, such as editing options (e.g. font options, paragraph options, etc.), storage options, authority application options, etc. The client of the first application program is also used to display a document collaborative object list and provide a collaborative object add option or a collaborative object delete option. If the collaborative object add option is selected, the client of the first application program can display an object identifier list, where the object identifier list may include one or more object identifiers and one or more authority object set identifiers, and if a target object identifier or a target authority object set identifier in the object identifier list is selected, the client of the first application program sends a collaborative object add request to the authority background of the first application program, where the collaborative object add request includes the selected target object identifier or the target authority object set identifier. If a target selects one or more target collaborative object identifiers in the document collaborative object list and selects the collaborative object delete option, the client of the first application program sends a collaborative object delete request to the authority background of the first application program, where the collaborative object delete request includes the selected one or more target collaborative object identifiers. The client of the first application program can also display the updated document collaboration target list after adding or deleting the collaboration target identifier in the authority background of the first application program.
[0026] 2. The second application program (1) The background of the second application program is used to create an authority object set. The background of the second application program can further manage the authority object set in response to an authority object set management request of the client of the second application program, the authority object set management request including an object addition request or an object deletion request. The authority object set includes one or more authority object identifiers, and each authority object identifier in the authority object set has document operation authority, and the background of the second application program can add one or more target organization object identifiers selected by the client of the second application program to the authority object set in response to an object addition request of the client of the second application program, the object addition request including one or more target organization object identifiers to be added. The background of the second application program can also delete one or more target authority object identifiers selected by the client of the second application program from the authority object set in response to an object deletion request of the client of the second application program, the organization object corresponding to the deleted target authority object identifier does not have document operation authority, and the object deletion request includes at least one target authority object identifier (i.e., one or more target authority object identifiers) to be deleted.
[0027] (2) The client of the second application program is used to display the authorized object set and provide an object adding option or an object deleting option. When the object adding option is selected, the client of the second application program can display an organization object identifier list, where the organization object identifier list includes at least one organization object identifier, and each organization object identifier in the organization object identifier list all belongs to the second application program, that is, the organization object corresponding to each organization object identifier in the organization object identifier list is a member of the second application program (e.g., may be a member of the second application program who has successfully registered, a member who has created an enterprise or organization of the second application program, etc.), and when at least one target organization object identifier in the organization object identifier list is selected by a target object (e.g., may be an administrator of the second application program, or may be any specific object of the second application program), the client of the second application program sends an object adding request to the background of the second application program, and the object adding request includes the selected at least one target organization object identifier. When the target object selects at least one target authorized object identifier from the authorization object set and selects the object deletion option, the client of the second application program sends an object deletion request to the background of the second application program, where the object deletion request includes the selected at least one target authorized object identifier. The client of the second application program can further display the updated authorization object set after adding or deleting the authorized object identifier in the background of the second application program. The client of the second application program can further provide a document entry, and a document in the first application program can be accessed through the document entry.
[0028] In order to more clearly understand the data transmission technical solution according to the embodiment of the present application, FIG. 1 shows a data transmission system to which the data transmission technical solution is applied. As shown in FIG. 1, the data transmission system includes a terminal 101 and a server 102. Here, the terminal 101 may be a device having a display function, such as a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, an in-vehicle device, a smart wearable device, etc., but is not limited thereto. The server 102 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing a cloud computing service, and the embodiment of the present application is not particularly limited. The terminal 101 and the server 102 may be directly or indirectly connected by wired communication or wireless communication, and the embodiment of the present application is not particularly limited.
[0029] As shown in FIG. 1, a client of a first application program and a client of a second application program are executed on a terminal 101, and a code 1001 for the client of the first application program and a code 1002 for the client of the second application program are displayed on a service interface 100 of the terminal 101.
[0030] It should be noted that the client of the first application program and the client of the second application program may be executed on the same terminal, e.g., the client of the first application program and the client of the second application program are both executed on terminal 101, and the client of the first application program and the client of the second application program may be executed on different terminals, e.g., the client of the first application program may be executed on the first terminal and the client of the second application program may be executed on the second terminal.
[0031] The open background of the first application program, the authority background of the first application program, and the background of the second application program may be deployed on the same server, for example, the open background of the first application program, the authority background of the first application program, and the background of the second application program may all be deployed on the server 102. The open background of the first application program, the authority background of the first application program, and the background of the second application program may be deployed on different servers, for example, the open background of the first application program may be deployed on the first server, the authority background of the first application program may be deployed on the second server, and the background of the second application program may be deployed on a third server, or the open background of the first application program and the authority background of the first application program may be deployed on the first server, and the background of the second application program may be deployed on the second server.
[0032] As an example, take the first application program as a document application program and the second application program as an instant messaging application program, an object (such as a user account registered in the document application program) initiates an editing request for a document in the document application program, obtains a document identifier and a requested object identifier of the document, the document application program obtains an authority object group identifier of the document based on the document identifier, sends an authority authentication request to the instant messaging application program, the instant messaging application program returns the authentication result, and the document application program outputs a response screen of the operation request based on the authentication result, thereby realizing the collaborative editing of the document by multiple collaborative objects and improving the document data processing efficiency of the document application program. Here, each document has a corresponding document identifier, and the document is uniquely identified by the document identifier, the objects that initiate the request in the first application program have corresponding requested object identifiers, and the requested object identifier is uniquely identified by the requested object identifier corresponding to the first application program, and the authority object group identifier is used to identify the authority group collaborative object.
[0033] It should be explained that the first application program prestores a document identifier corresponding to each document and a request target identifier of the target, where the storage locations of the document identifier and the request target identifier of the target include a local storage unit of the terminal that runs the first application program, an external database corresponding to the first application program, a background corresponding to the first application program, etc. When an object (which may be a collaboration object of the authority group collaboration object) registered in the first application program initiates an operation on a document in the document application program (for example, the object opens a document in the document application program and clicks an editing entry of the document (for example, a centering button of the document, an insert image button, etc.), or the object clicks a document and needs to view the document), the first application program automatically generates an operation request (for example, an editing request or a viewing request) for the document in the first application program according to the operation on the document by the object, and automatically obtains the request target identifier of the object of the first application program and the document identifier of the document of the initiated operation request from the storage location according to the operation request.
[0034] It is to be explained that, in the process in which the first application program and the second application program establish an interaction for the authority object set, the first application program generates a corresponding authority object set identifier for the authority object set, and stores the authority object set identifier corresponding to each document, where the storage location of the authority object set identifier includes: a local storage unit of a terminal running the first application program, an external database corresponding to the first application program, a background corresponding to the first application program, etc. After initiating an edit request for a document in a document application program and obtaining a document identifier of the document, automatically obtain the authority object set identifier of the document from the storage location according to the document identifier.
[0035] It can be understood that the data transmission system described in the embodiment of the present application is only for more clearly illustrating the technical solution of the embodiment of the present application, and is not intended to limit the technical solution of the embodiment of the present application. As can be understood by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution of the embodiment of the present application can be equally applied to similar technical problems.
[0036] When the data transmission system shown in Fig. 1 is executed, it is divided into three stages: an authority object set creation stage, an authority object set binding stage, and an authentication stage. The following will introduce these three stages respectively.
[0037] (1) Authorization group creation stage FIG. 2 illustrates an exemplary flowchart of the authority object set creation step according to an embodiment of the present application. As shown in FIG. 2, the authority object set creation step includes the following steps S201 to S207.
[0038] In step S201, the second application program sends an application program identifier and a callback link of the second application program to the open background of the first application program.
[0039] It should be noted that the application program identifier of the second application program is generated by the open background of the first application program for the second application program, and the application program identifier of the second application program can uniquely identify the second application program. The callback link is used to access the second application program, for example, the callback link includes an access address of the second application program. Here, the callback link may be a link generated according to the specifications of the second application program, or the callback link may be a standardized callback link developed according to specifications accepted by the first application program and the second application program. The standardized callback link may include a standard process for accessing the second application program, for example, a process of when to start using the standardized callback link, how to transmit parameters (e.g., an authority group common identifier and a request target identifier, etc.) to the standardized callback link, etc.
[0040] In step S202, the open background of the first application program binds the application program identifier of the second application program with a callback link.
[0041] It should be noted that the open background of the first application program binds the application program identifier of the second application program with the callback link, i.e., the open background of the first application program associates and stores the application program identifier of the second application program with the callback link, and the application program identifier of the second application program can determine the callback link associated with the application program identifier of the second application program, and the callback link can determine the application program identifier of the second application program associated with the callback link.
[0042] In step S203, the open background of the first application program sends a binding success notification to the second application program.
[0043] For example, after the open background of the first application program successfully binds the application program identifier and the callback link of the second application program, it sends a binding success notification to the second application program, and the binding success notification is used to indicate that the application program identifier and the callback link of the second application program have been successfully bound.
[0044] It should be noted that steps S201 to S203 are a process in which the open background of the first application program binds the application program identifier of the second application program with the callback link. In one embodiment, step S201 can be realized by a manner in which the second application program immediately transmits the application program identifier of the second application program and the callback link to the open background of the first application program after obtaining the application program identifier of the second application program generated by the open background of the first application program. In one embodiment, step S201 can be realized by a manner in which the second application program transmits a binding request to the open background of the first application program at any time after obtaining the application program identifier of the second application program generated by the open background of the first application program, and the binding request includes the application program identifier of the second application program and the callback link.In one embodiment, step S201 can be realized by the second application program sending a binding request to the open background of the first application program at any time after obtaining the application program identifier of the second application program generated by the open background of the first application program, the binding request including the application program identifier of the second application program, the access address of the second application program, and an instruction to start using the standardized callback link; in this embodiment, step S202 can be realized by the open background of the first application program starting to use the standardized callback link according to the instruction of the binding request of the second application program, transmitting the access address of the second application program to the standardized callback link, and binding the transmitted standardized callback link with the application program identifier of the second application program. In step S204, the second application program sends a request to create an authority object group to the open background of the first application program.
[0045] It should be explained that the authority object group creation request may include the application program identifier of the second application program and the document identifier of the document. One exemplary authority object group creation request may be "POST / openapi / xxxxx / v1 / groups", and the authority object group creation request may request the open background of the first application program to open an application programming interface (API) for creating an authority object group.
[0046] Taking the first application program as an example, where the first application program is a document application program and the second application program is an instant messaging application program, when a group that can operate a document is created in the instant messaging application program, the instant messaging application program can automatically generate a request for creating an authority object group, where the request for creating an authority object group includes a document identifier and an application program identifier of the instant messaging application program.
[0047] In step S205, the open background of the first application program generates an authority object set identifier for the second application program according to the authority object set creation request.
[0048] It should be explained that the open background of the first application program can generate an authority object set identifier of a document for the second application program based on the application program identifier and document identifier of the second application program included in the authority object set creation request, and associate and store the application program identifier of the second application program, the callback link, the document identifier and the authority object set identifier, where the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set includes multiple authority object identifiers (authorized collaborative object identifiers). It should be noted that when the first application program includes multiple documents associated with the second application program, the open background of the first application program generates an authority object set identifier for each document, and thus can set different operation authorities for different documents, for example, a viewing authority can be set for the authority object set identifier corresponding to the first document, and an editing authority can be set for the authority object set identifier corresponding to the second document, and thus the operation authority of the document is more diversified. The manner of setting an authority object set for a document avoids sequentially setting authorities for multiple authority objects by adding and setting one authority object set as a collaboration object of the document at once, thereby effectively improving the efficiency of setting collaboration objects and further improving the efficiency of document data transmission. The open background of the first application program jointly generates one authority object set identifier for all documents, and when the number of documents associated with the second application program in the first application program is large, the document management can be facilitated and the efficiency of document processing can be improved. The embodiment of the present application takes the open background of the first application program generating an authority object set identifier for each document as an example.
[0049] In step S206, the open background of the first application program sends the right object set identifier to the second application program.
[0050] The open background of the first application program can return the authority object set identifier to the second application program through the API related to the creation of the authority object set.
[0051] In step S207, the second application program creates an authority object set based on the authority object set identifier.
[0052] As shown in FIG. 2, through cooperation between the second application program and the open background of the first application program, the second application program has successfully created an authority object set for the document.
[0053] (2) Binding of authority groups FIG. 3 illustrates an exemplary flowchart of an authority object set binding step according to an embodiment of the present application. As shown in FIG. 3, the authority object set binding step includes the following steps S301 to S307.
[0054] In step S301, the second application program sends an authorization request to the open background of the first application program.
[0055] It should be explained that the authorization request may include an authority object set identifier, an application program identifier of the second application program, a document identifier (for example, may be a document ID or a document link), an operation authority type, etc. One exemplary authorization request may be "PATCH / openapi / xxxxx / v1 / files / {fileID} / members", where the authorization request may request the open background of the first application program to open an API for binding of the authority object set.
[0056] In step S302, the open background of the first application program performs an accuracy check on the authorization request.
[0057] For example, the open background of the first application program performing an accuracy check on the authorization request can refer to the open background of the first application program checking whether the content included in the authorization request is accurate and reliable, for example, the open background of the first application program checks whether the format of the document identifier is a standard document identifier format defined by the first application program, or the open background of the first application program checks whether the authorization object set identifier, the application program identifier of the second application program, and the document identifier included in the authorization request are the same as the authorization object set identifier, the application program identifier of the second application program, and the document identifier associated and stored in the open background of the first application program. By performing an accuracy check on the authorization request, an authorization operation can be performed on the authorization object set only if the authorization request passes the accuracy check, thereby ensuring that the objects in the authorization object set have the authority to operate the document and avoiding that any object can operate the document, thereby ensuring the security of document data transmission.
[0058] In step S303, if the authorization request passes the correctness check, the open background of the first application program sends the authorization request to the authority background of the first application program.
[0059] In step S304, the authority background of the first application program responds to the authorization request by adding the authority object set identifier to the document collaboration object list of the document.
[0060] For example, a document collaboration target list includes multiple collaboration target identifiers of a document, and each collaboration target identifier in the document collaboration target list has an operation authority for the document. The authority background of the first application program can add an authority target set identifier to the document collaboration target list in response to an authorization request, and configure the type of operation authority requested by the second application program for the authority target set identifier.
[0061] In step S305, the authority background of the first application program sends an authority grant response message to the open background of the first application program.
[0062] It should be noted that the authorization response message is used to indicate that the authorization object set identifier has obtained the document operation authorization and is authenticated by the second application program, thus effectively sharing the running load of the first application program and improving the running speed of the first application program.
[0063] In step S306, the open background of the first application program sends an authorization response message to the second application program.
[0064] In step S307, when receiving the authorization response message sent by the open background of the first application program, the second application program adds the multiple authorization object identifiers to the authorization object set.
[0065] When receiving the authorization response message sent by the open background of the first application program, the second application program can add multiple authorized object identifiers to an authorization object set, and set at least one operation authority for any one of the authorized object identifiers in the authorization object set, so that each authorized device identifier in the authorization object set has operation authority for all documents.
[0066] As shown in FIG. 3, through collaboration between the second application program, the open background of the first application program, and the authority background of the first application program, the first application program opens document operation authority to a set of authority objects, and the second application program adds multiple authority grant object identifiers to the set of authority objects, and opens document operation authority to the multiple authority grant object identifiers.
[0067] (3) Certification stage FIG. 4 shows an exemplary flowchart of the authentication step according to an embodiment of the present application. After completing the authority object set creation step and the authority object set binding step, the authentication step can be performed. As shown in FIG. 4, the authentication step includes the following steps S401 to S413.
[0068] In step S401, the request target initiates an operation request on a document.
[0069] For example, the operation request includes, but is not limited to, a view request, an edit request, etc. For example, the request target can initiate a view request for a document through a document entry in a client of a first application program (which may be, for example, a web application program, a mobile or desktop application program, or a mini program), initiate an edit request for the document through an edit option in the client of the first application program, or the request target can initiate a view request for a document through a document entry in a client of a second application program.
[0070] In step S402, in response to a request from the client of the first application program to operate on a document in the first application program, the client of the first application program obtains the document identifier and the request target identifier of the document.
[0071] In step S403, the client of the first application program sends an authentication request to the authority background of the first application program.
[0072] Here, the authentication request may include a document identifier and a request subject identifier.
[0073] In step S404, the authority background of the first application program responds to the authentication request by obtaining an authority object set identifier of the document based on the document identifier.
[0074] In step S405, the authority background of the first application program sends an authority authentication request to the open background of the first application program.
[0075] Here, the authorization authentication request may include an authorization object set identifier and a request object identifier.
[0076] In step S406, the open background of the first application program obtains the callback link associated with the authority object set identifier.
[0077] In step S407, the open background of the first application program calls the callback link to send an authorization authentication request for the request target identifier to the second application program.
[0078] In step S408, after the second application program receives the authority authentication request, the second application program determines whether the requested object identifier exists in the authority object set corresponding to the authority object set identifier.
[0079] For example, the authorization request may include the signature of the first application program or the digital certificate of the first application program. After the second application program receives the authorization request, the second application program can check whether the signature of the first application program or the digital certificate of the first application program exists in the authorization request, and if the signature of the first application program or the digital certificate of the first application program exists, the second application program can check whether the signature of the first application program or the digital certificate of the first application program is correct, and if the signature of the first application program or the digital certificate of the first application program is correct, the second application program further determines whether the requested object identifier is included in the authorization object set corresponding to the authorization object set identifier. If the signature of the first application program or the digital certificate of the first application program does not exist in the authorization request, or if the signature of the first application program or the digital certificate of the first application program is incorrect, the second application program determines that the authorization request is incorrect, and the second application program stops further authentication for the authorization request. In this manner, the authentication accuracy can be improved.
[0080] In step S409, if the request object identifier exists in the authority object set corresponding to the authority object set identifier, the second application program sends an authentication result of successful authentication to the open background of the first application program.
[0081] Here, the authentication result of successful authentication may include the type of operation authority that the request target identifier has.
[0082] In step S410, the open background of the first application program sends an authentication result of successful authentication to the authority background of the first application program.
[0083] In step S411, the authority background of the first application program checks whether the authority object set identifier has operation authority for the document.
[0084] In step S412, if the authority object set identifier has operation authority for the document, the authority background of the first application program sends an authentication result of successful authentication to the client of the first application program.
[0085] In step S411 or step S412, the authority background of the first application program can check whether the authority object group identifier has operation authority of the document. For example, the authority background of the first application program can further check whether the type of operation authority that the authority object group identifier has is the same as the type of operation authority that the request object identifier has. If the authority object group identifier has operation authority of the document, and the type of operation authority that the authority object group identifier has is the same as the type of operation authority that the request object identifier has, the authority background of the first application program sends an authentication result of successful authentication to the client of the first application program.
[0086] In step S413, the client of the first application program outputs a first response screen for the operation request to the request target based on the authentication result that the authentication is successful.
[0087] For example, the client of the first application program can output a first response screen to the request target based on the authentication result of successful authentication and display the document on the first response screen. If the type of operation authority held by the request target identifier included in the authentication result of successful authentication is editing authority, the client of the first application program can execute an editing operation on the document based on the editing request.
[0088] As shown in Figure 4, through collaboration between the second application program, the open background of the first application program, the authority background of the first application program, and the client of the first application program, authentication of a requesting subject that initiates an operation request for a document is performed, and a successful authentication situation is shown.
[0089] FIG. 5 illustrates an exemplary flowchart of the authentication step according to an embodiment of the present application. As shown in FIG. 5, the authentication step includes the following steps S501 to S512.
[0090] In step S501, the request target initiates an operation request on a document.
[0091] In step S502, when the client of the first application program detects an operation request initiated on a document in the first application program, the client of the first application program obtains the document identifier and the request target identifier of the document.
[0092] In step S503, the client of the first application program sends an authentication request to the authority background of the first application program.
[0093] In step S504, the authority background of the first application program responds to the authentication request by obtaining an authority object set identifier of the document based on the document identifier.
[0094] In step S505, the authority background of the first application program sends an authority authentication request for the request target identifier to the open background of the first application program.
[0095] In step S506, the open background of the first application program obtains the callback link associated with the authority object set identifier.
[0096] In step S507, the open background of the first application program calls the callback link to send an authority authentication request to the second application program.
[0097] In step S508, after the second application program receives the authority authentication request, the second application program determines whether the requested object identifier exists in the authority object set corresponding to the authority object set identifier.
[0098] For the specific execution process of steps S501 to S508 in the embodiment shown in FIG. 5, please refer to the description of the embodiment shown in FIG. 4, and the description will not be repeated here.
[0099] In step S509, if the requested object identifier does not exist in the authority object set corresponding to the authority object set identifier, the second application program sends an authentication result of authentication failure to the open background of the first application program.
[0100] In step S510, the open background of the first application program sends an authentication result of authentication failure to the authority background of the first application program.
[0101] In step S511, the authority background of the first application program sends an authentication result of authentication failure to the client of the first application program.
[0102] In step S512, the client of the first application program outputs a second response screen for the operation request to the request target based on the authentication result of failure.
[0103] For example, the client of the first application program outputs a second response screen to the request target based on the authentication result of authentication failure, and guides the request target to apply for operation authority for the document on the second response screen.
[0104] As shown in FIG. 5, the second application program, the open background of the first application program, the authority background of the first application program, and the client of the first application program cooperate to perform authentication of a requesting subject that initiates an operation request on a document, and a situation where authentication fails is shown.
[0105] In the embodiment of the present application, in the authority object set creation step and the authority object set binding step, for the first application program, the first application program saves the trouble of adding the first type of collaborative objects of the document one by one, and the first application program only needs to add the authority object set identifier of the authority object set of the document, thereby reducing the cost and burden of the first application program managing multiple collaborative objects in the second application program, and improving the document data processing efficiency of the first application program; for the second application program, the second application program creates the authority object set and maintains and manages the authority object identifiers in the authority object set, and the first application program does not need to know the authority object identifiers in the authority object set and the types of operation authorities held by each authority object identifier, which effectively protects the object information in the authority object set and meets the privacy protection requirements for the object information in the authority object set, and is beneficial to the second application program accessing the first application program. In the authentication phase, the first application program can send an authorization authentication request to the second application program via a callback link, requesting the second application program to authenticate the request target identifier included in the authorization authentication request using the authorization target set created by the second application program, thereby reducing the maintenance cost of the first application program.
[0106] Based on the above description, refer to FIG. 6, which shows an exemplary flowchart of a data transmission method according to an embodiment of the present application, where the data transmission method is performed by a first application program, and the data transmission method may include the following steps S601 to S604.
[0107] In step S601, in response to an operation request for a document in a first application program, the document identifier and the request target identifier of the document are obtained.
[0108] Here, the operation request includes, but is not limited to, a view request, an edit request, etc. For example, the request target can initiate a view request for a document through a document entry in a client of a first application program (which may be, for example, a web application program, a mobile or desktop application program, or a mini program, etc.), and initiate an edit request for the document through an edit option (for example, a font option, a paragraph option, etc.) in the client of the first application program, or the request target can initiate a view request for a document through a document entry in a client of a second application program. When detecting an operation request initiated for a document in the first application program, a document identifier and a request target identifier of the document can be obtained. Here, the document data corresponds to the document. Here, the first application program is executed on a first terminal.
[0109] In step S602, an authority object set identifier of the document is obtained based on the document identifier.
[0110] For example, after obtaining a document identifier of a document, an authority object set identifier of the document can be obtained based on the document identifier, and the authority object set identifier can be used to represent one authority object set having operation authority for the document, where the authority object set is created by a second application program, and the authority object set includes multiple authority object identifiers (authorized collaborative object identifiers).
[0111] The right object set identifier is generated by the first application program for the right object set created by the second application program (running on the first terminal or the second terminal). The process of the first application program generating the right object set identifier for the right object set may include the steps of receiving an right object set creation request sent by the second application program, where the right object set creation request includes a document identifier and an application program identifier of the second application program, and generating an right object set identifier for the right object set based on the right object set creation request and returning the right object set identifier to the second application program.
[0112] After returning the authority object set identifier to the second application program, it can receive and respond to an authority grant request sent by the second application program, and open document operation authority to the authority object set identifier, where the authority grant request includes the authority object set identifier, the application program identifier of the second application program, a document identifier (which may be, for example, a document ID or a document link), a type of operation authority, etc. The process of the first application program opening the document operation authority to the authority object set identifier may include a step of performing an accuracy check on the authorization request, where the accuracy check may refer to checking whether the content included in the authorization request is accurate and reliable, for example, checking whether the format of the document identifier is a standard document identifier format defined by the first application program, or checking whether the authority object set identifier, the application program identifier of the second application program, and the document identifier included in the authorization request are the same as the authority object set identifier, the application program identifier of the second application program, and the document identifier associated and stored in the first application program, and a step of adding the authority object set identifier to a document collaboration object list of the document if the accuracy check is passed, setting the operation authority required by the authorization request for the authority object set identifier, and sending an authorization response message to the second application program, where the authorization response message is used to indicate that the authority object set identifier has obtained the document operation authority.
[0113] The document collaboration target list may include a plurality of collaboration target identifiers of a document, and the type of document operation authority that each collaboration target identifier has, each collaboration target identifier in the document collaboration target list has document operation authority, and the collaboration target identifier may include a first type collaboration target identifier or an authority target group identifier (i.e., a second type collaboration target identifier), and the document collaboration target list can be adopted to realize effective management of document authority and improve the security of document data. Table 1 shows a document collaboration target list according to an embodiment of the present application, and as shown in the following Table 1, the document collaboration target list includes a first type collaboration target identifier 1, a first type collaboration target identifier 2, an authority target group identifier 1 and an authority target group identifier 2, where the first type collaboration target identifier 1 has document viewing authority, the first type collaboration target identifier 2 has document editing authority, the authority target group identifier 1 has document editing authority, and the authority target group identifier 2 has document viewing authority.
[0114] [Table 1]
[0115] In step S603, an authority authentication request is sent to the second application program, and the authority authentication request is used to trigger the second application program to perform authentication processing on the request object identifier based on the authority object set identifier, and return the authentication result.
[0116] For example, after obtaining the authority object group identifier and the request object identifier, it can send an authority authentication request to the second application program, and the authority authentication request is used to trigger the second application program to authenticate the request object identifier based on the authority object group identifier and return the authentication result, and the authority authentication request includes the authority object group identifier and the request object identifier. The manner in which the first application program sends the authority authentication request to the second application program includes, but is not limited to, the following two. The application program identifier of the second application program and a callback link are associated and stored in the first application program, and the callback link is used to access the second application program, for example, the callback link may be the access address of the second application program, and the callback link can be called to send the authority authentication request to the second application program. In this manner, the first application program can request the second application program to be authenticated by calling the callback link, and the callback link allows the second application program to quickly access the first application program, avoiding the connection delay when the second application program connects to the first application program, thereby improving the efficiency of document data transmission. Alternatively, a communication connection between the first application program and the second application program can be established according to a document authentication transmission protocol, the authorization request can be packaged into an authorization data packet, and the authorization data packet can be sent to the second application program according to the document authentication transmission protocol. In this manner, the authorization data packet meets the requirements of the document authentication transmission protocol, and the first application program can request authentication from the second application program, thereby improving the speed at which the first application program sends the authorization request to the second application program, improving the transmission efficiency of the authorization request, and thereby improving the authentication efficiency for the requested target.
[0117] In step S604, a response screen for the operation request is output based on the authentication result returned from the second application program.
[0118] For example, the operation request includes, but is not limited to, a view request or an edit request, the operation authority may include, but is not limited to, a view authority or an edit authority, and if the authentication result is successful, the authentication result includes the type of operation authority possessed by the request target identifier. If the authentication result is successful, a first response screen can be output based on the authentication result of successful authentication, and a document can be displayed on the first response screen, and if the type of operation authority possessed by the request target identifier included in the authentication result is edit authority, an edit operation can be performed on the document based on the edit request, so that the authentication operation allows only authorized subjects to operate the document, realizing a safe document edit operation, thereby improving information security and ensuring the security of document data transmission. FIG. 7a shows a schematic diagram of a response screen according to an embodiment of the present application. As shown in FIG. 7a, if the authentication result is successful, a first response screen 70 can be output and a document 701 can be displayed on the first response screen 70. If the type of operation authority held by the request target identifier included in the authentication result is editing authority, an editing operation can be performed on the document based on the editing request. For example, if the editing request indicates that the request target clicks the left-justify option 702 on the first response screen, the content in the document can be adjusted to be left-justified based on the editing request.
[0119] If the authentication result is an authentication failure, a second response screen can be output based on the authentication result of authentication failure, and the second response screen can include an authentication failure presentation message and an authority request option, and if the authority request option is selected, document operation authority can be opened to the requested target identifier, and the authority request option can include a view authority request option or an edit authority request option, and if the view authority request option is selected, document viewing authority can be opened to the requested target identifier, and if the edit authority request option is selected, document editing authority can be opened to the requested target identifier, thereby preventing document processing by unauthorized subjects through the authentication operation and improving the security of document data processing. FIG. 7b shows a schematic diagram of a response screen according to an embodiment of the present application. As shown in FIG. 7b, if the authentication result is authentication failure, a second response screen 71 can be output, and the second response screen 71 can include an authentication failure presentation message 711 (e.g., the authentication failure presentation message in FIG. 7b “Permissions have been set on the document. Please request permission to operate the document from the second application program”), and the second response screen 71 can further include a viewing permission request option 712 (e.g., the “Request for viewing permission” option in FIG. 7b) and an editing permission request option 713 (e.g., the “Request for editing permission” option in FIG. 7b).
[0120] For example, opening document operation rights to a requested target identifier may include the following two cases: in one embodiment, when an authority application option is selected, the requested target identifier is set as a first type collaborative target identifier, that is, the requested target identifier is added to the document collaborative target list of the document, and document operation rights can be set for the requested target identifier; for example, when a view authority application option is selected, the requested target identifier is added to the document collaborative target list of the document, and document viewing rights can be configured for the requested target identifier; or, when an edit authority application option is selected, the requested target identifier is added to the document collaborative target list of the document, and document editing rights can be configured for the requested target identifier; in this manner, when authentication fails, the requested target can apply to become a first type collaborative target of the document to meet the document processing requirements of the target. In another embodiment, when the authority application option is selected, an authority application request can be sent to the second application program, and the authority application request can be used to trigger the second application program to add the requested target identifier to the authority target set and configure document operation authority for the requested target identifier, and the authority application request can include a view authority application request or an edit authority application request. For example, when the view authority application option is selected, a view authority application request can be sent to the second application program, and the view authority application request can be used to trigger the second application program to add the requested target identifier to the authority target set and configure document view authority for the requested target identifier; or, when the edit authority application option is selected, an edit authority application request can be sent to the second application program, and the edit authority application request can be used to trigger the second application program to add the requested target identifier to the authority target set and configure document edit authority for the requested target identifier. In this manner, in the case of authentication failure, the request target can apply to become a member of the second type of collaborative target of the document, thereby rationally generating document processing authority for the target based on the authority application and improving information security.
[0121] In an embodiment of the present application, when detecting an operation request initiated for a document in a first application program, the document identifier and the requested object identifier of the document are obtained, and if an authority object set identifier exists in the document, the first application program can request the second application program to authenticate the requested object identifier based on the authority object set identifier, so as to effectively reduce the authentication cost of the first application program and effectively protect the object information in the authority object set of the second application program under the premise of ensuring accurate authentication. If the authentication fails, the requested object can apply to become a member of the first type of collaborative object of the document or the second type of collaborative object of the document to meet the usage requirements of the document object.
[0122] Referring to FIG. 8, FIG. 8 shows an exemplary flowchart of a data transmission method according to an embodiment of the present application, where the data transmission method is performed by a second application program, and the data transmission method may include the following steps S801 to S803.
[0123] In step S801, an authorization request sent by a first application program is received, where the authorization request includes an authorization object set identifier and a request object identifier.
[0124] Here, the authority authentication request is sent after the first application program obtains a document identifier and a request target identifier of the document in response to an operation request initiated for a document in the first application program, and obtains an authority object set identifier based on the document identifier, where the authority object set identifier is used to represent an authority object set having operation authority for the document, and the authority object set is created by the second application program.
[0125] The process of the second application program creating the authority object set may include the steps of: sending an authority object set creation request to the first application program, the authority object set creation request including a document identifier and an application program identifier of the second application program; receiving an authority object set identifier sent by the first application program, the authority object set identifier being generated by the first application program based on the authority object set creation request; creating an authority object set based on the authority object set identifier; and adding a plurality of authority object identifiers to the authority object set and setting at least one type of operation authority for any one of the authority object identifiers in the authority object set. In one embodiment, when the first application program configures a type of operation authority type for a document for the authority object set identifier, for example, a viewing authority for the document, each authorized device identifier in the authority object set corresponding to the authority object set identifier has a viewing authority for the document. Table 2 shows the table structure of the authorization object set according to the embodiment of the present application. As shown in Table 2, the authorization object set includes three authorization object identifiers. When the first application program configures the authorization object set identifier for viewing a document, each authorized device identifier in the authorization object set corresponding to the authorization object set identifier has the authorization to view the document. In this manner, each authorized object identifier in the authorization object set has the same document operation authorization type in the first application program, which facilitates the management of the authorization object set by the second application program. In another embodiment, when the first application program configures the authorization object set identifier for one or more operation authorization types of the document, such as the authorization to view the document, the authorization to edit the document, or the authorization to share the document, each authorized device identifier in the authorization object set corresponding to the authorization object set identifier can have at least one operation authorization of the document, such as one or more operation authorizations of the authorization to view the document, the authorization to edit the document, or the authorization to share the document.Table 3 shows the table structure of an authority object set according to another exemplary embodiment of the present application, as shown in Table 3, the authority object set includes three authority object identifiers, when the first application program configures document editing authority and document sharing authority for the authority object set identifier, each authorized device identifier in the authority object set corresponding to the authority object set identifier can have either one or two of document editing authority or document sharing authority, for example, in Table 3, the authority object identifier 1 has document editing authority, the authority object identifier 2 has document editing authority and document sharing authority, and the authority object identifier 3 has document sharing authority. In this manner, the authority object identifier in the authority object set has at least one type of document operation authority type in the first application program, which enriches the authority object set management manner of the second application program, and better meets the document processing requirements of the document object.
[0126] [Table 2]
[0127] [Table 3]
[0128] In step S802, an authentication process is performed on the request object identifier based on the right object set identifier to obtain an authentication result.
[0129] Here, the authority object set includes multiple authority object identifiers, each of which has at least one operation authority of the document, and the step of authenticating the requested object identifier based on the authority object set identifier may include the steps of: checking whether the requested object identifier exists in the authority object set; if it exists, generating an authentication result of authentication success, obtaining the type of operation authority possessed by the requested object identifier, and adding the type of operation authority possessed by the requested object identifier to the authentication result; if it does not exist, generating an authentication result of authentication failure, thereby performing a safe document editing operation through the authentication operation and improving information security.
[0130] In step S803, the authentication result is sent to the first application program.
[0131] After authenticating the request object identifier based on the right object set identifier, the authentication result is returned to the first application program.
[0132] In case of authentication failure, the device may further receive a rights application request sent by the first application program, the rights application request being sent by the first application program when the authentication result is authentication failure, the rights application request including a requested target identifier, and in response to the rights application request, the device may check the requested target identifier to determine whether the requested target identifier belongs to the second application program, and if the requested target identifier belongs to the second application program, add the requested target identifier to a rights target set and configure at least one type of operation authority for the requested target identifier. The rights application request may include a viewing rights application request or an editing rights application request. If the rights application request is a viewing rights application request, the device may add the requested target identifier to a rights target set and configure viewing authority for the requested target identifier in response to the viewing rights application request, and if the rights application request is an editing rights application request, the device may add the requested target identifier to a rights target set and configure editing authority for the requested target identifier in response to the editing rights application request.
[0133] In the embodiment of the present application, when receiving an authorization request sent by a first application program, the requested target identifier included in the authorization request can be authenticated according to the authorization target group identifier included in the authorization request, and if the requested target identifier exists in the authorization target group corresponding to the authorization target group identifier, an authentication result of authentication success is generated, and if the requested target identifier does not exist in the authorization target group corresponding to the authorization target group identifier, an authentication result of authentication failure is generated, and the authentication result is returned to the first application program. As can be seen from the above technical solution, the second application program can maintain and manage the authorization target group, and meet the requirement of privacy protection for the information of each target in the authorization target group. Furthermore, in the case of authentication failure, the second application program can set the requested target identifier as a member of the authorization target group, so that the requested target identifier has the document operation authority, and meet the document use requirement of the requested target.
[0134] Referring to FIG. 9, FIG. 9 shows an exemplary flowchart of a data transmission method according to an embodiment of the present application, where the data transmission method can be performed by interaction between a first application program and a second application program, and the data transmission method can include the following steps S901 to S906.
[0135] In step S901, in response to an operation request for a document in a first application program, the first application program acquires the document identifier and the request target identifier of the document.
[0136] For example, the operation request includes, but is not limited to, a view request, an edit request, etc. For example, the request target can initiate a view request for a document through a document entry in a client of a first application program (which may be, for example, a web application program, a mobile or desktop application program, or a mini program, etc.), initiate an edit request for a document through an edit option (for example, a font option, a paragraph option, etc.) in the client of the first application program, or the request target can initiate a view request for a document through a document entry in a client of a second application program. When detecting an operation request initiated for a document in the first application program, the first application program can obtain a document identifier and a request target identifier of the document.
[0137] In step S902, the first application program obtains an authority object set identifier of the document based on the document identifier.
[0138] After obtaining the document identifier, the first application program can obtain an authority object set identifier of the document based on the document identifier, and the authority object set identifier can be used to represent an authority object set having operation authority for the document, and the authority object set is created by the second application program.
[0139] In step S903, the first application program sends an authority authentication request to the second application program, where the authority authentication request includes an authority object set identifier and a request object identifier.
[0140] After obtaining the authority object group identifier and the request object identifier, the first application program can send an authority authentication request to the second application program, and the authority authentication request is used to trigger the second application program to authenticate the request object identifier based on the authority object group identifier and return the authentication result.
[0141] In step S904, the second application program performs authentication processing on the request object identifier based on the right object set identifier, and obtains an authentication result.
[0142] For example, the authority target set includes multiple authority target identifiers, each of which has at least one operation authority for a document, and the step of the second application program authenticating the request target identifier based on the authority target set identifier may include: checking whether the request target identifier exists in the authority target set; if the request target identifier exists in the authority target set, generating an authentication result of authentication success, obtaining the type of operation authority possessed by the request target identifier, and adding the type of operation authority possessed by the request target identifier to the authentication result; and if the request target identifier does not exist in the authority target set, generating an authentication result of authentication failure.
[0143] In step S905, the second application program sends the authentication result to the first application program.
[0144] After the second application program authenticates the request object identifier based on the right object set identifier, the second application program can return the authentication result to the first application program.
[0145] In step S906, the first application program outputs a response screen for the operation request based on the authentication result.
[0146] For example, the operation request includes, but is not limited to, a view request or an edit request, the operation authority includes, but is not limited to, a view authority or an edit authority, and if the authentication result is successful, the authentication result includes the type of operation authority possessed by the request target identifier. If the authentication result is successful, a first response screen can be output based on the authentication result of successful authentication, and a document can be displayed on the first response screen, and if the type of operation authority possessed by the request target identifier included in the authentication result is edit authority, an edit operation can be performed on the document based on the edit request. If the authentication result is unsuccessful, a second response screen can be output based on the authentication result of unsuccessful authentication, and the second response screen can include an authentication failure presentation message and an authority request option, and if the authority request option is selected, the document operation authority can be opened to the request target identifier.
[0147] Before the first application program obtains the authority target group identifier of the document based on the document identifier, the first application program can first check whether the requested target identifier is a first type collaborative target identifier of the document, that is, check whether the requested target identifier exists in the document collaborative target list of the document. If it is checked that the requested target identifier exists in the document collaborative target list of the document, the first application program determines the authentication success, and the first application program can output a first response screen based on the authentication result of the authentication success, and if the requested target identifier has a viewing authority for the document, the first application program can display the document in the first response screen, and if the requested target identifier has an editing authority for the document, the first application program can display the document in the first response screen and perform an editing operation on the document based on the editing request. If it is checked that the requested target identifier does not exist in the document collaborative target list of the document, the first application program can obtain the authority target group identifier of the document based on the document identifier, and send an authority authentication request to the second application program to request the second application program to authenticate the requested target identifier. In this manner, when the requested target identifier is a first type of collaboration target identifier, it can be directly authenticated by the first application program without the need to request the second application program for authentication, thereby improving the authentication efficiency of the first application program.
[0148] It should be noted that the operation request may be any one of the operation requests detected by the first application program and initiated on the document in the first application program, that is, the first application program needs to authenticate the request target identifier of each detected operation request, and in this manner, the authentication accuracy can be improved; or the operation request may be the first operation request detected by the first application program and initiated on the document in the first application program, and after the authentication is successful, the first application program can directly respond to other operation requests initiated on the document by the same request target, and the other operation requests refer to the operation requests whose request time is after the first operation request, and in this manner, the authentication efficiency can be improved. Alternatively, the operation request may be a first operation request initiated for a document in the first application program detected by the first application program, and after successful authentication, the first application program may store the document identifier in association with the request target identifier; when another operation request for a document by the same request target is received, the first application program may not request the second application program to authenticate, but may directly check whether the request target identifier initiating the other operation request is the same as the request target identifier stored in association with the first application program; if the request target identifier initiating the other operation request is the same as the request target identifier stored in association with the first application program, it determines that the authentication is successful, and the other operation request refers to an operation request whose request time is after the first operation request; and the first application program may further update the associated and stored document identifier and request target identifier at a predetermined time interval; in this manner, authentication efficiency is improved while ensuring authentication accuracy.
[0149] In an embodiment of the present application, if a requested target identifier exists in the document collaborative target list of a document, that is, if the requested target identifier is a first type collaborative target identifier of the document, the first application program can directly authenticate the requested target identifier without needing to request and authenticate the second application program, thereby improving the authentication efficiency of the first application program; if a requested target identifier does not exist in the document collaborative target list of a document and an authority target set identifier exists in the document collaborative target list, that is, if the target corresponding to the requested target identifier is a member of the second type collaborative target of the document, the first application program can request authentication from the second application program, thereby reducing the authentication cost of the first application program; and the authority target set is created, managed and maintained by the second application program, effectively protecting the information of each target in the authority target set from being disclosed to the first application program.
[0150] The above describes in detail the method of the embodiment of the present application. In order to more easily implement the above technical solution of the embodiment of the present application, the following provides an apparatus of the embodiment of the present application.
[0151] Referring to Figure 10, Figure 10 shows an exemplary structural diagram of a data transmission device according to an embodiment of the present application, where the data transmission device 100 can be arranged in a first application program, and the data transmission device 100 can be configured to execute corresponding steps of the first application program in the method embodiments shown in Figures 2 to 9, and the data transmission device 100 can include an acquisition unit 1001, a sending unit 1002, and a processing unit 1003.
[0152] The acquiring unit is configured to execute a first application program on the first terminal, and acquire a request object identifier and a document identifier of the document in response to an operation request for a document in the first application program; The acquisition unit 1001 is further configured to acquire an authority object set identifier of the document based on the document identifier, where the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set is created by a second application program, and the authority object set includes a plurality of authorized object identifiers; the sending unit 1002 is configured to send an authority authentication request for the requested object identifier to the second application program, where the authority authentication request is used to trigger the second application program to perform authentication processing for the requested object identifier based on the authority object set identifier and return an authentication result, where the authority authentication request includes the authority object set identifier and the requested object identifier; and the processing unit 1003 is configured to output a response screen for the operation request based on the authentication result returned from the second application program.
[0153] In some embodiments, the data transmission device 100 further includes a receiving unit 1004, wherein the receiving unit 1004 is configured to receive an authority object set creation request sent by the second application program, the authority object set creation request including the document identifier and an application program identifier of the second application program, the processing unit 1003 is further configured to generate an authority object set identifier for the authority object set based on the authority object set creation request, the sending unit 1002 is further configured to send the authority object set identifier to the second application program, the receiving unit 1004 is further configured to receive an authority authorization request sent by the second application program, the authority authorization request including the authority object set identifier, and the processing unit 1003 is further configured to open document operation authority to the authority object set corresponding to the authority object set identifier in response to the authority authorization request.
[0154] In some embodiments, the processing unit 1003 is further configured to perform an accuracy check on the authorization request, and if the authorization request passes the accuracy check, add the authority target set identifier to a document collaboration target list of the document and send an authorization response message to the second application program, where the document collaboration target list includes a plurality of collaboration target identifiers of the document, each collaboration target identifier in the document collaboration target list has operation authority for the document, the collaboration target identifier is used to identify the collaboration target, and the authorization response message is used to indicate that the authority target set corresponding to the authority target set identifier has obtained operation authority for the document.
[0155] In some embodiments, the first application program is associated with and stored in the first application program with an application program identifier and a callback link of the second application program, the callback link is used to access the second application program, and the sending unit 1002 is further configured to call the callback link and send an authorization authentication request to the second application program.
[0156] In some embodiments, a communication connection is established between the first application program and the second application program according to a document authentication transmission protocol, and the sending unit 1002 is further configured to package the authorization request into an authorization data packet, and send the authorization data packet to the second application program according to the document authentication transmission protocol.
[0157] In some embodiments, the operation request includes a viewing request or an editing request, the operation authority includes viewing authority or editing authority, and if the authentication result is successful authentication, a first response screen is output and the document is displayed on the first response screen, and the processing unit 1003 is further configured to, if the authentication result is successful authentication, output a first response screen and display the document on the first response screen, and if the type of operation authority held by the request target identifier included in the authentication result is the editing authority, perform an editing operation on the document based on the editing request.
[0158] In some embodiments, the processing unit 1003 is further configured to output a second response screen when the authentication result is authentication failure, and open the operation authority of the document to the requested target identifier in response to a trigger operation on the authority application option, where the second response screen includes an authentication failure presentation message and an authority application option.
[0159] According to the embodiment of the present application, each unit in the data transmission device 100 shown in FIG. 10 may be configured by combining each or all with one or several other units, or some (several) of the units may be further divided into several functionally smaller units, thus realizing the same operation without affecting the realization of the technical effect of the embodiment of the present application. The above units are divided based on logical functions, and in actual application, the function of one unit can be realized by several units, or the function of several units can be realized by one unit. In other embodiments of the present application, the data transmission device 100 may also include other units, and in actual application, these functions can be realized jointly by other units, or jointly by several units. According to another embodiment of the present application, a data transmission device 100 shown in Fig. 10 can be configured and the data transmission method of the embodiment of the present application can be realized by executing a computer program (program code) capable of executing each step of a first application program relating to the corresponding method shown in Fig. 2 to Fig. 9 on a general-purpose computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read only memory (ROM). The computer program can be written on a computer-readable storage medium, for example, and loaded into and executed by the computer-readable storage medium.
[0160] In an embodiment of the present application, when an operation request initiated for a document in a first application program is detected, a document identifier and a request target identifier of the document are obtained, and an authority target set identifier of the document is obtained based on the document identifier, the authority target set identifier is used to represent an authority target set having operation authority for the document, and the authority target set is created by a second application program, and an authority authentication request is sent to the second application program, where the authority authentication request includes the authority target set identifier and the request target identifier, and the authority authentication request is used to trigger the second application program to authenticate the request target identifier based on the authority target set identifier and return the authentication result, and output a response screen for the operation request based on the authentication result. As can be seen from the above technical solution, firstly, by using the authority object set, one authority object set can be added and set as the collaboration object of a document at a time, thus effectively improving the setting efficiency of the collaboration object; in addition, the authority object set is created and managed by the second application program, and the information of each object in the authority object set does not need to be disclosed to the first application program, so that the privacy protection requirement for the information of each object in the authority object set can be met; furthermore, when the requesting object initiates an operation request to the document in the first application program, it will be authenticated by the second application program, thus effectively sharing the processing load of the first application program and reducing the maintenance cost.
[0161] Referring to FIG. 11, FIG. 11 shows an exemplary structural diagram of a data transmission device according to an embodiment of the present application, where the data transmission device 110 can be installed in a first application program, and the data transmission device 110 can be configured to execute corresponding steps of a second application program in the method embodiments shown in FIG. 2 to FIG. 9, and the data transmission device 110 can include a receiving unit 1101, a processing unit 1102, and a sending unit 1103.
[0162] The receiving unit 1101 is configured to receive an authority authentication request for a requested object identifier sent by a first application program, the authority authentication request including an authority object set identifier and the requested object identifier, where the first application program is executed on the first terminal, and the first application program obtains the requested object identifier and a document identifier of the document in response to an operation request for a document in the first application program, and obtains an authority object set identifier of the document based on the document identifier, the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set is created by a second application program, and the authority object set includes a plurality of authorized object identifiers, the processing unit 1102 is configured to perform an authentication process for the requested object identifier based on the authority object set identifier to obtain an authentication result, and the sending unit 1103 is configured to send the authentication result to the first application program.
[0163] In some embodiments, each authorized target identifier in the authority object set has at least one operation authority of a document, and the processing unit 1102 is further configured to check whether the requested target identifier exists in the authority object set, and if the requested target identifier exists in the authority object set, generate an authentication result of successful authentication, obtain the type of operation authority held by the requested target identifier, and add the type of operation authority held by the requested target identifier to the authentication result of successful authentication; and if the requested target identifier does not exist in the authority object set, generate an authentication result of failed authentication.
[0164] In some embodiments, the sending unit 1103 is further configured to send an authority object set creation request to the first application program, where the authority object set creation request includes a document identifier and an application program identifier of the second application program; The receiving unit 1101 is further configured to receive an authority object set identifier sent by the first application program, where the authority object set identifier is generated by the first application program based on a authority object set creation request, and the processing unit 1102 is further configured to create an authority object set based on the authority object set identifier, add multiple authority object identifiers to the authority object set, and set at least one kind of operation authority for any one of the authority object identifiers in the authority object set.
[0165] In some embodiments, the receiving unit 1101 is further configured to receive a rights request sent by the first application program, where the rights request request is sent by the first application program when the authentication result is authentication failure, and the rights request request includes a requested target identifier, and the processing unit 1102 is further configured to add the requested target identifier to the rights target set and configure at least one kind of operation permission for the requested target identifier in response to the rights request.
[0166] According to the embodiment of the present application, each unit in the data transmission device 110 shown in FIG. 11 may be configured by combining with one or several other units, or some of the units may be further divided into several units with smaller functions, thus realizing the same operation without affecting the realization of the technical effect of the embodiment of the present application. The above units are divided based on logical functions, and in actual application, the function of one unit can be realized by several units, or the function of several units can be realized by one unit. In other embodiments of the present application, the data transmission device 110 may also include other units, and in actual application, these functions can be realized by other units jointly, or by several units jointly. According to another embodiment of the present application, a data transmission device 110 shown in Fig. 11 can be configured and the data transmission method of the embodiment of the present application can be realized by executing a computer program (program code) capable of executing each step of a second application program relating to the corresponding method shown in Fig. 2 to Fig. 9 on a general-purpose computer including processing elements and storage elements such as a central processing unit (CPU), a random access memory (RAM), and a read only memory (ROM). The computer program can be written in, for example, a computer-readable storage medium and loaded into and executed by the computer-readable storage medium.
[0167] In an embodiment of the present application, when an authority authentication request sent by a first application program is received, the requested target identifier included in the authority authentication request can be authenticated based on the authority target set identifier included in the authority authentication request, and the authentication result can be returned to the first application program, where the authority authentication request is sent after obtaining a document identifier and a requested target identifier of the document when the first application program detects an operation request initiated for a document in the first application program, and obtaining an authority target set identifier based on the document identifier, where the authority target set identifier is used to represent an authority target set having operation authority for the document, and the authority target set is created by the second application program. As can be seen from the above technical solution, firstly, the set of authority objects is created and managed by the second application program, and the first application program cannot obtain information of each object in the set of authority objects, thus meeting the requirement of privacy protection for the information of each object in the set of authority objects; through the set of authority objects, one set of authority objects can be added and set as a collaboration object of a document at one time, thus effectively improving the setting efficiency of the collaboration objects; furthermore, when a requesting object initiates an operation request for a document in the first application program, it will be authenticated by the second application program, thus effectively sharing the processing load of the first application program and reducing the maintenance cost.
[0168] 12, FIG. 12 shows an exemplary structural diagram of an electronic device for data transmission according to an embodiment of the present application, the electronic device 120 at least includes a processor 1201, a computer-readable storage medium 1202 and a communication interface 1203. Here, the processor 1201, the computer-readable storage medium 1202 and the communication interface 1203 can be connected by a bus or other manner. The communication interface 1203 can be configured to receive or transmit data. The computer-readable storage medium 1202 can be stored in a memory, the computer-readable storage medium 1202 is configured to store a computer program, and the computer program includes computer instructions. The processor 1201 is configured to execute computer instructions. The processor 1201 (also called a central processing unit (CPU)) is a computing core and control core of the electronic device 120, adapted to realize one or more computer instructions, specifically adapted to load and execute one or more computer instructions to realize a corresponding method process or a corresponding function.
[0169] The embodiment of the present application further provides a computer-readable storage medium (Memory), which is a memory device in the electronic device 120 and is configured to store programs and data. As can be understood, the computer-readable storage medium 1202 here can include an internal storage medium in the electronic device 120, and of course can include an extended storage medium supported by the electronic device 120. The computer-readable storage medium provides a storage space in which the operating system of the electronic device 120 is stored. And, the storage space stores one or more computer instructions to be loaded and executed by the processor 1201, and these computer instructions may be at least one computer program (including program code). It should be noted that the computer-readable storage medium 1202 here can be a high-speed RAM memory, a non-volatile memory such as at least one magnetic disk memory, or optionally at least one computer-readable storage medium separate from the processor 1201.
[0170] In one embodiment, the electronic device 120 may be used to realize corresponding steps of a first application program, where a computer program is stored in the computer-readable storage medium 1202, and the computer program may include one or more first computer instructions, and the one or more first computer instructions are loaded and executed by the processor 1201 to realize corresponding steps of the first application program in the method embodiment shown in Figures 2 to 9. In a specific implementation, the one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 to perform the following steps:
[0171] That is, the method includes the steps of: executing a first application program on the first terminal; acquiring a request target identifier and a document identifier of the document in response to an operation request for a document in the first application program; acquiring an authority target set identifier of the document based on the document identifier, where the authority target set identifier is used to represent one authority target set having operation authority for the document, and the authority target set is created by a second application program, and the authority target set includes a plurality of authority target identifiers; sending an authority authentication request for the request target identifier to the second application program, where the authority authentication request is used to trigger the second application program to perform an authentication process for the request target identifier based on the authority target set identifier and return an authentication result, where the authority authentication request includes the authority target set identifier and the request target identifier; and outputting a response screen for the operation request based on the authentication result returned from the second application program.
[0172] In some embodiments, one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 to perform the following steps:
[0173] That is, the method includes the steps of receiving an authority object set creation request sent by the second application program, where the authority object set creation request includes a document identifier and an application program identifier of the second application program; generating an authority object set identifier for the authority object set based on the authority object set creation request and sending the authority object set identifier to the second application program; receiving an authority grant request sent by the second application program, where the authority grant request includes the authority object set identifier; and opening document operation authority to the authority object set corresponding to the authority object set identifier in response to the authority grant request.
[0174] In some embodiments, the one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201, and when executing the step of opening the document operation authority to the authority object set identifier, further execute the following steps:
[0175] That is, the method includes the steps of: performing an accuracy check on the authorization request; and, if the authorization request passes the accuracy check, adding the authority target set identifier to a document collaboration target list of the document, the document collaboration target list including a plurality of collaboration target identifiers of the document, each collaboration target identifier in the document collaboration target list has operation authority for the document, and the collaboration target identifier is used to identify the collaboration target; and sending an authorization response message to the second application program, the authorization response message being used to indicate that the authority target set corresponding to the authority target set identifier has obtained operation authority for the document.
[0176] In some embodiments, an application program identifier and a callback link of a second application program are associated with and stored in the first application program, and the callback link is used to access the second application program; and one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 to execute the step of sending an authorization request to the second application program, further comprising: A step of invoking a callback link and sending an authorization request to the second application program is performed.
[0177] In some embodiments, a communication connection is established between the first application program and the second application program according to a document authentication transmission protocol, and one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 to execute the step of sending an authorization authentication request to the second application program, further comprising: The steps of packaging the authorization request into an authorization data packet and sending the authorization data packet to the second application program according to a document authentication transmission protocol are performed.
[0178] In some embodiments, the operation request includes a viewing request or an editing request, the operation authority includes a viewing authority or an editing authority, and if the authentication result is successful, the authentication result includes a type of operation authority that the request target identifier has. When one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 and execute the step of outputting a response screen for the operation request based on the authentication result, further comprising: If the authentication result is successful, the steps are: outputting a first response screen and displaying the document on the first response screen; and if the type of operation authority held by the requested target identifier included in the authentication result is editing authority, performing an editing operation on the document based on the editing request.
[0179] In some embodiments, the one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201, and further include, when executing the step of outputting a response screen for an operation request based on the authentication result, If the authentication result is an authentication failure, the step of outputting a second response screen, the second response screen including an authentication failure presentation message and an authority request option, and the step of opening document operation authority to the requested target identifier in response to a trigger operation on the authority request option are executed.
[0180] In an embodiment of the present application, when an operation request initiated for a document in a first application program is detected, a document identifier and a request target identifier of the document are obtained, and an authority target set identifier of the document is obtained based on the document identifier, the authority target set identifier is used to represent an authority target set having operation authority for the document, and the authority target set is created by a second application program, and an authority authentication request is sent to the second application program, where the authority authentication request includes the authority target set identifier and the request target identifier, and the authority authentication request is used to trigger the second application program to authenticate the request target identifier based on the authority target set identifier and return the authentication result, and output a response screen for the operation request based on the authentication result. As can be seen from the above technical solution, firstly, by using the authority object set, one authority object set can be added and set as the collaboration object of a document at one time, thus effectively improving the setting efficiency of the collaboration object; secondly, the authority object set is created and managed by the second application program, and the information of each object in the authority object set does not need to be disclosed to the first application program, so that the privacy protection requirement for the information of each object in the authority object set can be met; furthermore, when the requesting object initiates an operation request to the document in the first application program, it will be authenticated by the second application program, thus effectively sharing the processing load of the first application program and reducing the maintenance cost.
[0181] In one embodiment, the electronic device 120 may be used to realize corresponding steps of a second application program, in which a computer program is stored in the computer-readable storage medium 1202, and the computer program may include one or more second computer instructions, and the one or more second computer instructions are loaded and executed by the processor 1201 to realize corresponding steps of the second application program in the method embodiments shown in Figures 2 to 9. In a specific implementation, the one or more second computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 to perform the following steps:
[0182] That is, the method includes the steps of: receiving an authority authentication request for a requested target identifier sent by a first application program, the authority authentication request including an authority object set identifier and the requested target identifier, where the first application program is executed on the first terminal, and in response to an operation request for a document in the first application program, obtaining the requested target identifier and a document identifier of the document, and obtaining an authority object set identifier of the document based on the document identifier, the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set is created by a second application program, the authority object set including a plurality of authority granted target identifiers; performing an authentication process for the requested target identifier based on the authority object set identifier to obtain an authentication result; and sending the authentication result to the first application program.
[0183] In some embodiments, the authority object set includes a plurality of authorized object identifiers, and each authorized object identifier in the authority object set has at least one operation authority of the document, and the one or more second computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 to perform the step of authenticating the requested object identifier based on the authority object set identifier, further comprising: The authentication method executes the steps of: checking whether the requested target identifier exists in the authority target set; generating an authentication result of authentication success if the requested target identifier exists in the authority target set, acquiring the type of operation authority possessed by the requested target identifier, and adding the type of operation authority possessed by the requested target identifier to the authentication result of authentication success; and generating an authentication result of authentication failure if the requested target identifier does not exist in the authority target set.
[0184] In some embodiments, the one or more second computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201, The method includes the steps of: sending an authority target set creation request to a first application program, the authority target set creation request including a document identifier and an application program identifier of the second application program; receiving an authority target set identifier sent by the first application program, the authority target set identifier being generated by the first application program based on the authority target set creation request; creating an authority target set based on the authority target set identifier; and adding a plurality of authority target identifiers to the authority target set and setting at least one type of operation authority for any one of the authority target identifiers in the authority target set.
[0185] In some embodiments, one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201, The method includes the steps of: receiving a rights application request sent by a first application program, the rights application request being sent by the first application program when the authentication result is authentication failure, the rights application request including a requested target identifier; and, in response to the rights application request, adding the requested target identifier to a rights target set and configuring at least one type of operation authority for the requested target identifier.
[0186] In an embodiment of the present application, when an authority authentication request sent by a first application program is received, the requested target identifier included in the authority authentication request can be authenticated based on the authority target set identifier included in the authority authentication request, and the authentication result can be returned to the first application program, where the authority authentication request is sent after obtaining a document identifier and a requested target identifier of the document when the first application program detects an operation request initiated for a document in the first application program, and obtaining an authority target set identifier based on the document identifier, where the authority target set identifier is used to represent an authority target set having operation authority for the document, and the authority target set is created by the second application program. As can be seen from the above technical solution, firstly, the set of authority objects is created and managed by the second application program, and the first application program cannot obtain information of each object in the set of authority objects, so that the requirement of privacy protection for the information of each object in the set of authority objects can be met; in addition, the set of authority objects can be added and set as a collaboration object of a document at one time through the set of authority objects, thus effectively improving the setting efficiency of the collaboration objects; furthermore, when a requesting object initiates an operation request for a document in the first application program, it will be authenticated by the second application program, thus effectively sharing the processing load of the first application program and reducing the maintenance cost.
[0187] According to one aspect of the present application, there is provided a computer program product or computer program including computer instructions, the computer instructions being stored in a computer readable storage medium, a processor of a computing device reading the computer instructions from the computer readable storage medium and executing the computer instructions in the processor, causing the computing device to perform the data transmission method according to the various alternative manners described above.
[0188] The above content is merely a specific embodiment of the present application, and the protection scope of the present application is not limited thereto. Any modifications or replacements that a person skilled in the art can easily think of within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. [Explanation of symbols]
[0189] 70 First response screen 71 Second response screen 100 Service Interfaces 101 Terminal 102 Server 110 Data transmission equipment 120 Electronic equipment 701 Documents 702 Options 711 Authentication failure message 712 Viewing permission request option 713 Editing permission request option 1001 Acquired Units 1002 Transmitter unit 1003 Processing Unit 1004 Receiver Unit 1101 Receiver unit 1102 Processing unit 1103 Transmitter unit 1201 Processor 1202 Computer-readable storage medium 1203 Communication Interface
Claims
1. A data transmission method performed by a first terminal, comprising: executing a first application program on the first terminal; acquiring a request target identifier and a document identifier of the document in response to an operation request for the document in a first application program; obtaining an authority object set identifier of the document based on the document identifier, the authority object set identifier being used to represent one authority object set having operation authority of the document, the authority object set being created by a second application program, and the authority object set including a plurality of authority object identifiers; sending an authorization authentication request for the requested target identifier to the second application program, the authorization authentication request being used to trigger the second application program to perform an authentication process for the requested target identifier based on the authorization target set identifier and return an authentication result, the authorization authentication request including the authorization target set identifier and the requested target identifier; outputting a response screen for the operation request based on an authentication result returned from the second application program.
2. Before responding to an operation request for a document in a first application program, the data transmission method includes: receiving an authority object set creation request sent by the second application program, the authority object set creation request including the document identifier and an application program identifier of the second application program; generating an authority object set identifier for the authority object set based on the authority object set creation request, and sending the authority object set identifier to the second application program; receiving an authorization request sent by the second application program, the authorization request including the authorization object set identifier; 2. The data transmission method according to claim 1, further comprising the step of: in response to the authorization request, opening an operation authority for the document to an authority object set corresponding to the authority object set identifier.
3. In response to the authorization request, opening an operation authority for the document to an authority object set corresponding to the authority object set identifier includes: performing an accuracy check on the authorization request; If the authorization request passes the accuracy check, adding the authorized object set identifier to a document collaboration object list of the document, the document collaboration object list including a plurality of collaboration object identifiers of the document, each collaboration object identifier in the document collaboration object list has an operation authority of the document, and the collaboration object identifier is used to identify a collaboration object; 3. The data transmission method according to claim 2, further comprising: a step of sending an authorization response message to the second application program, the authorization response message being used to indicate that an authority object set corresponding to the authority object set identifier has obtained an operation authority for the document.
4. an application program identifier of the second application program and a callback link are stored in association with the first application program, the callback link being used to access the second application program; The step of transmitting an authorization authentication request for the request target identifier to the second application program includes:
2. The data transmission method according to claim 1, further comprising the step of invoking the callback link and sending the authorization request to the second application program.
5. A communication connection is established between the first application program and the second application program according to a document authentication transmission protocol; The step of transmitting an authorization authentication request for the request target identifier to the second application program includes:
2. The data transmission method of claim 1, further comprising the steps of: packaging the authorization request into an authorization data packet, and sending the authorization data packet to the second application program according to the document authentication transmission protocol.
6. The operation request includes a viewing request or an editing request, and the operation authority includes a viewing authority or an editing authority; When the authentication result is a successful authentication, the authentication result includes a type of operation authority held by the request target identifier, and a step of outputting a response screen for the operation request based on the authentication result returned from the second application program includes: outputting a first response screen when the authentication result indicates a successful authentication, and displaying the document on the first response screen; 2. The data transmission method according to claim 1, further comprising: if the type of operation authority held by the requested target identifier included in the authentication result is the editing authority, executing an editing operation on the document based on the editing request.
7. The step of outputting a response screen for the operation request based on the authentication result returned from the second application program includes: outputting a second response screen when the authentication result is authentication failure, the second response screen including an authentication failure indication message and an authority application option; 2. The data transmission method according to claim 1, further comprising the step of: opening the operation authority of the document to the requested target identifier in response to a trigger operation on the authority application option.
8. A data transmission method performed by a first terminal or a second terminal, comprising: receiving an authority authentication request for a requested target identifier sent by a first application program, the authority authentication request including an authority object set identifier and the requested target identifier, the first application program being executed on the first terminal, the first application program obtaining the requested target identifier and a document identifier of the document in response to an operation request for a document in the first application program, and obtaining an authority object set identifier of the document based on the document identifier, the authority object set identifier being used to represent one authority object set having operation authority for the document, and the authority object set being created by a second application program, the authority object set including a plurality of authorized target identifiers; performing an authentication process on the request object identifier based on the authorization object set identifier to obtain an authentication result; sending the authentication result to the first application program. Data transmission method.
9. Each of the authorization object identifiers in the authorization object set has at least one operation authority for the document; The step of performing authentication processing for the request object identifier based on the authority object set identifier includes: checking whether said requested object identifier is present in said authorization object set; generating an authentication result of successful authentication when the requested target identifier is included in the authority target set, acquiring a type of operation authority that the requested target identifier has, and adding the type of operation authority that the requested target identifier has to the authentication result of successful authentication; The data transmission method according to claim 8 , further comprising: generating an authentication result of authentication failure if the requested object identifier does not exist in the authorized object set.
10. Before performing authentication processing for the requested object identifier based on the authorized object set identifier, the data transmission method includes: sending an authority object set creation request to the first application program, the authority object set creation request including the document identifier and an application program identifier of the second application program; receiving an authority object set identifier transmitted by the first application program, the authority object set identifier being generated by the first application program based on the authority object set creation request; creating the authorization object set based on the authorization object set identifier; The data transmission method according to claim 8 , further comprising the steps of: adding the plurality of authorized object identifiers to the authorization object set; and setting at least one type of operation authority for any one of the authorized object identifiers in the authorization object set.
11. The data transmission method includes: receiving a rights application request sent by the first application program, the rights application request being sent by the first application program when the authentication result is authentication failure, and the rights application request including the request target identifier; 9. The data transmission method according to claim 8, further comprising the step of: in response to the authority application request, adding the requested object identifier to the authority object set, and configuring at least one kind of operation authority for the requested object identifier.
12. A data transmission device, an acquisition unit configured to execute a first application program on a first terminal and acquire a request object identifier and a document identifier of the document in response to an operation request for the document in the first application program; a sending unit configured to send an authorization authentication request for the requested target identifier to a second application program, the authorization authentication request being used to trigger the second application program to perform an authentication process for the requested target identifier based on an authorization target set identifier and return an authentication result, the authorization authentication request including the authorization target set identifier and the requested target identifier; a processing unit configured to output a response screen for the operation request based on an authentication result returned from the second application program, The data transmission device, wherein the acquisition unit is further configured to acquire an authority object set identifier of the document based on the document identifier, the authority object set identifier is used to represent one authority object set having operation authority for the document, and the authority object set is created by a second application program, and the authority object set includes a plurality of authority granted object identifiers.
13. A data transmission device, a receiving unit configured to receive an authority authentication request for a requested target identifier sent by a first application program, the authority authentication request including an authority object set identifier and the requested target identifier, the first application program being executed on a first terminal, the first application program obtaining the requested target identifier and a document identifier of the document in response to an operation request for a document in the first application program, and obtaining an authority object set identifier of the document based on the document identifier, the authority object set identifier being used to represent an authority object set having operation authority for the document, the authority object set being created by a second application program, the authority object set including a plurality of authorized target identifiers; A processing unit configured to perform an authentication process on the request object identifier based on the authorized object set identifier to obtain an authentication result; a sending unit configured to send the authentication result to the first application program.
14. A processor for implementing a computer program; A computer-readable storage medium having stored thereon a computer program for causing said processor to execute the data transmission method according to any one of claims 1 to 7.
15. A processor for implementing a computer program; A computer-readable storage medium having stored thereon a computer program for causing said processor to execute the data transmission method according to any one of claims 8 to 11.
16. A computer program for causing a first terminal to execute the data transmission method described in any one of claims 1 to 7.
17. A computer program for causing a second terminal to execute the data transmission method described in any one of claims 8 to 11.
Citation Information
Patent Citations
Access right evaluation device
JP1997114784A
Document management system and method
JP2011159149A
