Document processing method, device, equipment and storage medium
By introducing the concept of authorized user groups into the online collaborative document system, which is managed by the second application, the problems of collaborator information exposure and low setting efficiency are solved, and privacy protection and cost reduction are achieved.
Patent Information
- Application Number
- CN202111238746.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-12-29
AI Technical Summary
In existing online collaborative document systems, collaborators' information is exposed to applications, leading to privacy protection issues, and collaborator setup efficiency is low and maintenance costs are high.
By introducing the concept of authorized user groups, which are created and managed by the second application, and the first application only performs authentication, information exposure is reduced and setting efficiency is improved.
It realizes the privacy protection of collaborator information, improves the efficiency of collaborator setting, and reduces management and maintenance costs.
Smart Images

Figure CN114692195B
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application submitted to the China Patent Office on December 29, 2020, with application number 202011602703.3 and application name "A document processing method, device, equipment and storage medium". All contents are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of computer technology, in particular to the field of data processing technology, and specifically to a document processing method, a document processing apparatus, a document processing device, and a computer-readable storage medium. Background Art
[0003] An online collaborative document (hereinafter referred to as document) within a first application (which may be, for example, a document application) is a document that supports online editing and collaborative editing by multiple collaborators. A collaborator of a document refers to one or more users who have the authority to operate the document and can operate on the document. For example, a collaborator can view the document or edit the document, etc. At present, collaborators are added and set up one by one by the first application, and the collaborator's information (including user information and authority information) is managed by the first application. When a collaborator operates on a document, the first application authenticates the collaborator based on the collaborator's information. There are some problems with the above existing solutions. First, the collaborator's information needs to be fully exposed to the first application. This is a prerequisite for adding collaborators, which cannot meet the need for privacy protection of collaborator information. Second, the collaborator setting efficiency is low and the maintenance cost is high. Summary of the invention
[0004] The embodiments of the present application provide a document processing method, apparatus, device and storage medium, which can meet the needs of privacy protection of collaborators' information, and can effectively improve the setting efficiency of collaborators and reduce maintenance costs.
[0005] On the one hand, an embodiment of the present application provides a document processing method, the document processing method comprising:
[0006] When an operation request initiated for a document in the first application is detected, obtaining a document identifier of the document and a requesting user identifier;
[0007] Acquire a permission group collaborator identifier of the document according to the document identifier, where the permission group collaborator identifier is used to represent a permission user group that has the permission to operate the document, and the permission user group is created by the second application;
[0008] Sending a permission authentication request to the second application, the permission authentication request carrying the permission group collaborator identifier and the requesting user identifier, the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier, and return the authentication result;
[0009] Output the response page of the operation request based on the authentication result.
[0010] In an embodiment of the present application, when an operation request initiated for a document within a first application is detected, the document identifier and the requesting user identifier of the document are obtained, and the permission group collaborator identifier of the document is obtained based on the document identifier, the permission group collaborator identifier is used to represent a permission user group that has permission to operate the document, and the permission user group is created by a second application; a permission authentication request is sent to the second application, the permission authentication request carries the permission group collaborator identifier and the requesting user identifier, the permission authentication request is used to trigger the second application to authenticate the requesting user identifier based on the permission group collaborator identifier, and return the authentication result; and a response page for the operation request is output based on the authentication result. It can be seen from the above scheme that, firstly, through the method of permission user groups, a permission user group can be added and set as a collaborator of the document at one time, which effectively improves the efficiency of setting collaborators; secondly, the permission user group is created and managed by the second application, and the information of each user in the permission user group does not need to be exposed to the first application, which can meet the need for privacy protection of the information of each user in the permission user group; in addition, when the requesting user initiates an operation request for the document in the first application, the second application is used for authentication, which can effectively share the management burden of the first application and reduce management and maintenance costs.
[0011] On the other hand, an embodiment of the present application provides a document processing method, the document processing method comprising:
[0012] Receive a permission authentication request sent by the first application, the permission authentication request carrying a permission group collaborator identifier and a requesting user identifier; wherein, when the first application detects an operation request initiated for a document in the first application, it obtains the document identifier and the requesting user identifier of the document, and obtains the permission group collaborator identifier according to the document identifier; the permission group collaborator identifier is used to represent a permission user group that has the permission to operate the document, and the permission user group is created by the second application;
[0013] Authenticate the requesting user ID according to the permission group collaborator ID;
[0014] The authentication result is returned to the first application.
[0015] In the embodiment of the present application, when receiving the permission authentication request sent by the first application, the request user identifier carried in the permission authentication request can be authenticated according to the permission group collaborator identifier carried in the permission authentication request, and the authentication result is returned to the first application; wherein, the permission authentication request is sent by the first application after obtaining the document identifier and the request user identifier of the document and obtaining the permission group collaborator identifier according to the document identifier when detecting an operation request initiated for a document in the first application, and the permission group collaborator identifier is used to represent a permission user group with the operation authority of the document, and the permission user group is created by the second application. It can be seen from the above scheme that, firstly, the permission user group is created and managed by the second application, and the first application cannot obtain the information of each user in the permission user group, which can meet the need for privacy protection of the information of each user in the permission user group; secondly, through the permission user group, a permission user group can be added and set as a collaborator of the document at one time, which effectively improves the setting efficiency of the collaborator; in addition, when the requesting user initiates an operation request for the document in the first application, the second application performs authentication, which can effectively share the management burden of the first application and reduce the management and maintenance costs.
[0016] On the other hand, an embodiment of the present application provides a document processing device, the document processing device comprising:
[0017] An acquisition unit, configured to acquire a document identifier and a requesting user identifier of the document when an operation request initiated for a document in the first application is detected;
[0018] The acquisition unit is further used to acquire the permission group collaborator identifier of the document according to the document identifier, where the permission group collaborator identifier is used to represent a permission user group having the operation permission of the document, and the permission user group is created by the second application;
[0019] A sending unit, used to send a permission authentication request to the second application, the permission authentication request carries the permission group collaborator identifier and the requesting user identifier, the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier, and return the authentication result;
[0020] The processing unit is used to output a response page of the operation request according to the authentication result.
[0021] In one implementation, the document processing device further includes a receiving unit; the receiving unit is configured to receive a permission user group creation request sent by the second application, the permission user group creation request carrying a document identifier and an identifier of the second application;
[0022] The processing unit is further used to assign a permission group collaborator identifier to the permission user group according to the permission user group creation request;
[0023] The sending unit is further used to return the permission group collaborator identifier to the second application;
[0024] The receiving unit is further used to receive an authorization request sent by the second application, wherein the authorization request carries an identifier of a permission group collaborator;
[0025] The processing unit is further configured to identify the operation authority of the open document to the authority group collaborators in response to the authorization request.
[0026] In one implementation, the processing unit is specifically configured to:
[0027] Conduct legality verification on authorization requests;
[0028] If the legality check passes, the permission group collaborator ID is added to the document collaborator list of the document, the document collaborator list includes one or more collaborator IDs of the document, and each collaborator ID in the document collaborator list has the operation authority of the document;
[0029] An authorization response message is sent to the second application, where the authorization response message is used to indicate that the permission group collaborator identifier obtains the document operation permission.
[0030] In one implementation, the first application stores an identifier of the second application and a callback link in association; the callback link is used to access the second application; and the sending unit is specifically used to:
[0031] The callback link is called to send the permission authentication request to the second application.
[0032] In one implementation, a communication connection is established between the first application and the second application via a document authentication transmission protocol; and a sending unit is specifically configured to:
[0033] The authority authentication request is encapsulated into an authority authentication data packet, and the authority authentication data packet is sent to the second application based on the document authentication transmission protocol.
[0034] In one implementation, the operation request includes a viewing request or an editing request; the operation authority includes a viewing authority or an editing authority; if the authentication result is successful, the authentication result carries the type of operation authority possessed by the requesting user identifier; the processing unit is specifically used to:
[0035] If the authentication result is successful, the first response page is output and the document is displayed in the first response page;
[0036] If the type of operation permission that the requesting user identifier carries in the authentication result is editing permission, the editing operation is performed on the document according to the editing request.
[0037] In one implementation, the processing unit is specifically configured to:
[0038] If the authentication result is authentication failure, a second response page is output, which includes an authentication failure prompt message and a permission application option;
[0039] When the permission request option is selected, the document operation permissions are opened to the requesting user ID.
[0040] On the other hand, an embodiment of the present application provides a document processing device, the document processing device comprising:
[0041] A receiving unit, configured to receive a permission authentication request sent by a first application, wherein the permission authentication request carries a permission group collaborator identifier and a requesting user identifier; wherein, when the first application detects an operation request initiated for a document in the first application, it obtains the document identifier and the requesting user identifier of the document, and obtains the permission group collaborator identifier based on the document identifier; the permission group collaborator identifier is used to represent a permission user group that has the permission to operate the document, and the permission user group is created by the second application;
[0042] A processing unit, configured to authenticate the requesting user identifier according to the permission group collaborator identifier;
[0043] The sending unit is used to return the authentication result to the first application.
[0044] In one implementation, the authorized user group includes one or more authorized user identifiers, and each authorized user identifier in the authorized user group has at least one operation permission on the document; the processing unit is specifically used to:
[0045] Verify whether the requesting user ID exists in the authorized user group;
[0046] If yes, generate an authentication result of successful authentication, obtain the type of operation authority possessed by the requesting user identity, and add the type of operation authority possessed by the requesting user identity to the authentication result;
[0047] If not, an authentication result indicating authentication failure is generated.
[0048] In one implementation, the sending unit is further configured to send a permission user group creation request to the first application, wherein the permission user group creation request carries a document identifier and an identifier of the second application;
[0049] The receiving unit is further used to receive the permission group collaborator identifier sent by the first application, where the permission group collaborator identifier is allocated by the first application according to the permission user group creation request;
[0050] The processing unit is further used to create a permission user group according to the permission group collaborator identifier; and
[0051] Add one or more authorized user IDs to the authorized user group, and configure at least one operation permission for any authorized user ID in the authorized user group.
[0052] In one implementation, the receiving unit is further configured to receive a permission application request sent by the first application, the permission application request is sent by the first application when the authentication result is an authentication failure, and the permission application request includes a requesting user identifier;
[0053] The processing unit is further used to add the requesting user identifier to the authorized user group in response to the permission application request, and configure at least one operation permission for the requesting user identifier.
[0054] On the other hand, an embodiment of the present application provides a document processing device, the document processing device comprising:
[0055] a processor adapted to implement a computer program; and,
[0056] A computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the above-mentioned document processing method.
[0057] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned document processing method.
[0058] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned document processing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0060] Figure 1 A schematic diagram of the architecture of a document processing system provided by an exemplary embodiment of the present application is shown;
[0061] Figure 2A schematic diagram of a process of creating a permission user group provided by an exemplary embodiment of the present application is shown;
[0062] Figure 3 A schematic diagram of a process flow of a permission user group binding phase provided by an exemplary embodiment of the present application is shown;
[0063] Figure 4 A schematic diagram of a flow chart of an authentication phase provided by an exemplary embodiment of the present application is shown;
[0064] Figure 5 A schematic diagram of a flow chart of an authentication phase provided by another exemplary embodiment of the present application is shown;
[0065] Figure 6 A schematic diagram showing a flow chart of a document processing method provided by an exemplary embodiment of the present application is shown;
[0066] Figure 7a A schematic diagram of a response page provided by an exemplary embodiment of the present application is shown;
[0067] Figure 7b A schematic diagram of a response page provided by another exemplary embodiment of the present application is shown;
[0068] Figure 8 A schematic flow chart of a document processing method provided by another exemplary embodiment of the present application is shown;
[0069] Fig. 9 A schematic flow chart of a document processing method provided by another exemplary embodiment of the present application is shown;
[0070] Fig.10 A schematic diagram of the structure of a document processing device provided by an exemplary embodiment of the present application is shown;
[0071] Fig.11 A schematic diagram of the structure of a document processing device provided by another exemplary embodiment of the present application is shown;
[0072] Fig.12 A schematic structural diagram of a document processing device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0074] Embodiments of the present application relate to online collaborative documents. Online collaborative documents (hereinafter referred to as documents) are documents that support online editing, online storage, and collaborative editing by multiple collaborators. The collaborators of a document may refer to authorized users of the document, that is, one or more users who have the authority to operate the document and can operate the document; the operating authority here may include but is not limited to: viewing authority, modification authority, etc., that is, collaborators with viewing authority can view the document, and collaborators with editing authority can edit the document.
[0075] The first application refers to a document application that can manage documents, that is, through the first application, document creation, document operation, document permission management, document storage, etc. can be achieved. The first application supports the setting of the first type of collaborators of the document. The so-called first type of collaborators refers to one or more users who have the operation permissions of the document and can operate the document after the operation permissions are configured by the first application. The first type of collaborators are managed by the first application. The first application can set the user in the second application as the first type of collaborator of the document. The second application refers to other applications other than the first application. For example, the second application can be an instant messaging application, a social conversation application, etc. Taking the example that the first application is a document application and the second application is an instant messaging application, the specific scenarios for setting the first type of collaborator are as follows: the first user of the instant messaging application wants to set the second user of the instant messaging application as a first type of collaborator through the document application, and the document application needs to obtain the user information (for example, the identifier of the second user) and permission information (for example, the type of operation permission) of the second user from the instant messaging application, so that the document application can configure corresponding operation permissions for the second user and set the second user as the first type of collaborator of the document; or, the first user of the instant messaging application wants to set multiple second users in a multi-person session chat of the instant messaging application as first type of collaborators through the document application, and the document application needs to obtain the user information and permission information of each second user in the multi-person session chat from the instant messaging application, so that the document application can configure corresponding operation permissions for each second user in the multi-person session chat in turn, and set multiple second users in the multi-person session chat as first type of collaborators of the document one by one. It can be seen that the first type of collaborator is set for a single user, and the first application needs to set up the first type of collaborators one by one; the first type of collaborators are managed by the first application, and the first application needs to manage the information of the first type of collaborators (including user information and permission information), so that the information of the first type of collaborators in the second application is completely exposed in the first application; and when there is an operation request initiated for a document within the first application, the first application needs to authenticate the requesting user based on the information of the first type of collaborators.
[0076] Based on the need for privacy protection of collaborators' information, the embodiment of the present application proposes the concept of a second type of collaborator. The so-called second type of collaborator refers to a permission user group created and managed by a second application. The permission user group may include one or more authorized user identifiers, and each authorized user corresponding to an authorized user identifier in the permission user group has the authority to operate the document. The permission user group is managed by the second application, and the permission group collaborator identifier of the permission user group is managed by the first application. The biggest difference between the first type of collaborator and the second type of collaborator is that whether a user is a second type of collaborator of a document is not set or determined by the first application, but by the second application. Taking the example that the first application is a document application and the second application is an instant messaging application, the specific scenario for setting the second type of collaborator is as follows: the instant messaging application is created by an enterprise, and a user of the instant messaging application (for example, it can be the administrator of the instant messaging application or any designated user) wants to set all users in a department of the enterprise as the second type of collaborators of the document. The instant messaging application applies to the document application for the permission group collaborator identifier of the permission user group. When the instant messaging application receives the permission group collaborator identifier assigned by the document application to the permission user group, the instant messaging application can create a permission user group based on the permission group collaborator identifier, and add user information (for example, it can be an authorized user identifier) and permission information (for example, it can be the type of operation permission) of all users in the department to the permission user group. The permission user group is the second type of collaborator of the document, and the authorized user corresponding to each authorized user identifier in the permission user group has the operation permission of the document. It can be seen that through the method of permission user groups, a permission user group can be added and set up as the second type of collaborator of the document at one time, which effectively improves the efficiency of setting up collaborators; secondly, the permission user group is created and managed by the second application, and the information of each user in the permission user group does not need to be exposed to the first application, which can meet the need for privacy protection of the information of each user in the permission user group; in addition, when the requesting user initiates an operation request for the document in the first application, the second application is authenticated based on the information of the collaborators in the permission user group, which can effectively share the management burden of the first application and reduce management and maintenance costs.
[0077] It should be noted that the document mentioned in the embodiment of the present application is associated with the second application. For example, the document can be published to the first application by a user of the second application (for example, the administrator of the second application, or any designated user in the second application).
[0078] The following is a brief introduction to the composition of the first application and the second application mentioned in the embodiment of the present application. The first application can be a web application, a mobile version or desktop version application or a small program, etc. The first application can include a client of the first application, an open background of the first application, and a permission background of the first application. The second application can include a client of the second application and a background of the second application. Among them:
[0079] 1. First Application
[0080] (1) The open background of the first application can be used to establish a communication connection between the permission background of the first application and the second application, thereby realizing data exchange between the permission background of the first application and the second application.
[0081] (2) The permission background of the first application can be used to respond to the permission management request of the client of the first application and perform permission management on the document in the first application. The permission management request may include a collaborator adding request or a collaborator deleting request. The permission background of the first application maintains a document collaborator list of a document. The document collaborator list may include one or more collaborator identifiers (for example, it may be a first type of collaborator identifier or a permission group collaborator identifier (i.e., a second type of collaborator identifier)). Each collaborator identifier in the document collaborator list has the operation permission of the document. The permission background of the first application can respond to the collaborator adding request of the client of the first application and add the target user identifier or target permission group collaborator identifier selected by the client of the first application to the document collaborator list. The collaborator adding request carries the target user identifier or target permission group collaborator identifier to be added. The permission background of the first application can also respond to the collaborator deleting request of the client of the first application and delete one or more target collaborator identifiers selected by the client of the first application in the document collaborator list from the document collaborator list. The user or permission user group corresponding to the deleted target collaborator identifier no longer has the operation permission of the document. The collaborator deleting request carries the one or more target collaborator identifiers to be deleted.
[0082] (3) The client of the first application can be used to display the document in the first application and provide some document operation options, such as editing options (such as font options, paragraph options, etc.), storage options, rights application options, etc. The client of the first application can also be used to display the document collaborator list and provide a collaborator adding option or a collaborator deleting option. When the collaborator adding option is selected, the client of the first application can display a user ID list, which can include one or more user IDs and one or more permission group collaborator IDs. When the target user ID or target permission group collaborator ID in the user ID list is selected, the client of the first application sends a collaborator adding request to the permission background of the first application, and the collaborator adding request carries the selected target user ID or target permission group collaborator ID. When the user selects one or more target collaborator IDs in the document collaborator list and selects the collaborator deleting option, the client of the first application sends a collaborator deleting request to the permission background of the first application, and the collaborator deleting request carries the selected one or more target collaborator IDs. The client of the first application can also display the updated document collaborator list after adding or deleting the collaborator ID in the permission background of the first application.
[0083] Second Application
[0084] (1) The background of the second application can be used to create an authorized user group. The background of the second application can also manage the authorized user group in response to the authorized user group management request of the client of the second application. The authorized user group management request can include a user add request or a user delete request. The authorized user group can include one or more authorized user identifiers, and each authorized user identifier in the authorized user group has the document operation authority; the background of the second application can add one or more target organization user identifiers selected by the client of the second application to the authorized user group in response to the user add request of the client of the second application, and the user add request carries the one or more target organization user identifiers to be added. The background of the second application can also delete one or more target authorized user identifiers selected by the client of the second application in the authorized user group from the authorized user group in response to the user delete request of the client of the second application. The organization user corresponding to the deleted target authorized user identifier no longer has the document operation authority, and the user delete request carries the one or more target authorized user identifiers to be deleted.
[0085] (2) The client of the second application can be used to display the authorized user group and provide a user add option or a user delete option. When the user add option is selected, the client of the second application can display the organization user ID list, which can contain one or more organization user IDs. Each organization user ID in the organization user ID list belongs to the second application, that is, each organization user corresponding to each organization user ID in the organization user ID list is a member of the second application (for example, a member who has successfully registered the second application, a member of the enterprise or organization that created the second application, etc.). When one or more target organization user IDs in the organization user ID list are selected by the target user (for example, the administrator of the second application, or any designated user in the second application), the client of the second application sends a user add request to the background of the second application, and the user add request carries the selected one or more target organization user IDs. When the target user selects one or more target authorized user IDs in the authorized user group and selects the user delete option, the client of the second application sends a user delete request to the background of the second application, and the user delete request carries the selected one or more target authorized user IDs. The client of the second application can also display the updated authorized user group after adding or deleting the authorized user ID in the background of the second application. The client of the second application may also provide a document portal, through which documents in the first application may be accessed.
[0086] In order to more clearly understand the document processing solution provided by the embodiment of the present application, Figure 1 The document processing scheme is applicable to a document processing system, such as Figure 1 As shown, the document processing system may include a terminal 101 and a server 102. The terminal 101 may be a device with a display function such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart wearable device, etc., but is not limited thereto; the server 102 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, which is not limited in the embodiments of the present application. The terminal 101 and the server 102 may be directly or indirectly connected via wired communication or wireless communication, which is not limited in the embodiments of the present application.
[0087] like Figure 1As shown, the client of the first application and the client of the second application are running in the terminal 101, and the icon 1001 of the client of the first application and the icon 1002 of the client of the second application are displayed in the service interface 100 of the terminal 101. It should be noted that the client of the first application and the client of the second application can be run in the same terminal, for example, the client of the first application and the client of the second application are both run in the terminal 101; the client of the first application and the client of the second application can also be run in different terminals, for example, the client of the first application is run in the first terminal, and the client of the second application is run in the second terminal.
[0088] The open background of the first application, the permission background of the first application, and the background of the second application can be deployed in the same server, for example, the open background of the first application, the permission background of the first application, and the background of the second application are all deployed in the server 102. The open background of the first application, the permission background of the first application, and the background of the second application can also be deployed in different servers, for example, the open background of the first application is deployed in the first server, the permission background of the first application is deployed in the second server, and the background of the second application is deployed in the third server; or the open background of the first application and the permission background of the first application are deployed in the first server, and the background of the second application is deployed in the second server.
[0089] It can be understood that the document processing system described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0090] Figure 1 The document processing system shown in the figure can be divided into three stages during operation: permission user group creation stage, permission user group binding stage and authentication stage. The following introduces these three stages respectively:
[0091] (1) Authorization user group creation stage
[0092] Figure 2 FIG. 1 shows a flow chart of a permission user group creation phase provided by an exemplary embodiment of the present application, such as Figure 2 As shown, the authorized user group creation phase includes the following steps S201 to S207:
[0093] S201, the second application sends the identifier and callback link of the second application to the open background of the first application.
[0094] The identifier of the second application is assigned to the second application by the open background of the first application, and the identifier of the second application can uniquely identify the second application. The callback link can be used to access the second application. For example, the callback link can include the access address of the second application. Here, the callback link can be a link formulated in accordance with the specifications of the second application; or, the callback link can also be a standardized callback link formulated in accordance with specifications recognized by both the first application and the second application. The standardized callback link may include a standard process for accessing the second application; for example: when to enable a standardized callback link, how to pass parameters into the standardized callback link (such as the permission group collaboration identifier and the requesting user identifier, etc.), and other processes.
[0095] S202: The open backend of the first application program binds the identifier of the second application program and the callback link.
[0096] The open background of the first application binds the identifier and callback link of the second application, that is, the open background of the first application stores the identifier and callback link of the second application in association. The callback link associated with the identifier of the second application can be determined through the identifier of the second application, and the identifier of the second application associated with the callback link can also be determined through the callback link.
[0097] S203, the open background of the first application sends a binding success notification to the second application.
[0098] After the open background of the first application successfully binds the identifier and callback link of the second application, a binding success notification is sent to the second application, where the binding success notification is used to indicate that the identifier and callback link of the second application are successfully bound.
[0099] Steps S201-S203 are the process of binding the identifier and callback link of the second application in the open background of the first application. In one implementation, in step S201, the second application can send the identifier and callback link of the second application to the open background of the first application immediately upon obtaining the identifier of the second application assigned by the open background of the first application. In another implementation, in step S201, the second application can send a binding request to the open background of the first application at any time after obtaining the identifier of the second application assigned by the open background of the first application, and the binding request carries the identifier and callback link of the second application. In another implementation, in step S201, the second application may send a binding request to the open background of the first application at any time after obtaining the identifier of the second application assigned by the open background of the first application, and the binding request carries the identifier of the second application, the access address of the second application, and an indication of enabling a standardized callback link; under this implementation, in step S202, the open background of the first application enables the standardized callback link according to the indication of the binding request of the second application, passes in the access address of the second application in the standardized callback link, and binds the passed-in standardized callback link to the identifier of the second application.
[0100] S204, the second application sends a permission user group creation request to the open background of the first application.
[0101] The permission user group creation request may carry the identifier of the second application and the document identifier of the document. An exemplary permission user group creation request may be "POST / openapi / xxxxx / v1 / groups", and the permission user group creation request may request the open backend of the first application to open an API (Application Programming Interface) related to permission user group creation.
[0102] S205: The open background of the first application allocates a permission group collaborator identifier to the second application according to the permission user group creation request.
[0103] The open background of the first application can assign a permission group collaborator identifier for the document to the second application according to the identifier and document identifier of the second application carried in the permission user group creation request, and store the identifier, callback link, document identifier and permission group collaborator identifier of the second application in association. It should be noted that if the first application contains multiple documents associated with the second application, the open background of the first application can assign a permission group collaborator identifier to each document, so that different operation permissions can be configured for different documents, such as configuring viewing permissions for the permission group collaborator identifier corresponding to the first document, and configuring editing permissions for the permission group collaborator identifier corresponding to the second document, so that the document management scheme is more diversified; the open background of the first application can also assign a permission group collaborator identifier to all documents, so that when the number of documents associated with the second application in the first application is large, it is convenient to manage the documents; the embodiment of the present application takes the example of the open background of the first application assigning a permission group collaborator identifier to each document as an example.
[0104] S206: The open background of the first application returns the permission group collaborator identifier to the second application.
[0105] The open backend of the first application can return the permission group collaborator identifier to the second application through an API related to permission user group creation.
[0106] S207: The second application creates an authorized user group according to the authorized group collaborator identifier.
[0107] exist Figure 2 In the illustrated embodiment, through the collaboration between the second application and the open backend of the first application, the second application successfully creates a permission user group for the document.
[0108] (2) Permission user group binding stage
[0109] Figure 3 A schematic diagram of a process flow of a permission user group binding phase provided by an exemplary embodiment of the present application is shown as follows: Figure 3 As shown, the authorized user group creation phase includes the following steps S301 to S307:
[0110] S301, the second application sends an authorization request to the open background of the first application.
[0111] The authorization request may carry the permission group collaborator identifier, the second application identifier, the document identifier (for example, a document ID or a document link), the type of operation permission, etc. An exemplary authorization request may be "PATCH / openapi / xxxxx / v1 / files / {fileID} / menbers", and the authorization request may request the open backend of the first application to open the API associated with the permission user group binding.
[0112] S302, the open background of the first application performs a legitimacy check on the authorization request.
[0113] The open background of the first application performs a legitimacy check on the authorization request, which may refer to the open background of the first application checking whether the content carried in the authorization request is correct and credible; for example, the open background of the first application checks whether the format of the document identifier is the standard document identifier format specified by the first application; or the open background of the first application checks whether the permission group collaborator identifier, the identifier of the second application, and the document identifier carried in the authorization request are the same as the permission group collaborator identifier, the identifier of the second application, and the document identifier stored in association with the open background of the first application, etc.
[0114] S303: If the legality check passes, the open background of the first application sends the authorization request to the permission background of the first application.
[0115] S304: The permission background of the first application program responds to the authorization request and adds the permission group collaborator identifier to the document collaborator list of the document.
[0116] The document collaborator list includes one or more collaborator identifiers of the document, and each collaborator identifier in the document collaborator list has the operation authority of the document. The permission background of the first application can respond to the authorization request, add the permission group collaborator identifier to the document collaborator list, and configure the type of operation authority requested by the second application for the permission group collaborator identifier.
[0117] S305, the permission background of the first application sends an authorization response message to the open platform of the first application.
[0118] The authorization response message is used to indicate that the permission group collaborator ID obtains the operation permission of the document.
[0119] S306: The open platform of the first application sends an authorization response message to the second application.
[0120] S307: Upon receiving the authorization response message sent by the open platform of the first application, the second application adds one or more authorized user identifiers to the authorized user group.
[0121] When receiving the authorization response message sent by the open platform of the first application, the second application can add one or more authorized user identifiers to the authorized user group, and configure at least one operation permission for any authorized user identifier in the authorized user group, so that each authorized device identifier in the authorized user group has the document operation permission.
[0122] exist Figure 3 In the illustrated embodiment, through collaboration between the second application, the open background of the first application, and the permission background of the first application, the first application opens the document operation permissions to the permission user group, and the second application adds one or more authorized user identifiers to the permission user group to open the document operation permissions to the one or more authorized user identifiers.
[0123] (3) Authentication stage
[0124] Figure 4 FIG. 1 shows a flow chart of an authentication phase provided by an exemplary embodiment of the present application, such as Figure 4 As shown, the authentication phase includes the following steps S401 to S413:
[0125] S401, requesting a user to initiate an operation request for a document.
[0126] Operation requests may include but are not limited to: viewing requests, editing requests, etc. For example, a requesting user may initiate a viewing request for a document through a document entry in a client of a first application (e.g., a web application, a mobile version or a desktop version application, or a small program), and initiate an editing request for a document through an editing option in the client of the first application; or, a requesting user may initiate a viewing request for a document through a document entry in a client of a second application.
[0127] S402: When the client of the first application detects an operation request initiated for a document in the first application, the client of the first application obtains a document identifier of the document and a requesting user identifier.
[0128] S403: The client of the first application sends an authentication request to the permission background of the first application.
[0129] The authentication request may carry a document identifier and a requesting user identifier.
[0130] S404, the permission center of the first application responds to the authentication request and obtains the permission group collaborator identifier of the document according to the document identifier.
[0131] S405, the permission background of the first application sends a permission authentication request to the open background of the first application.
[0132] The permission authentication request may carry the permission group collaborator ID and the requesting user ID.
[0133] S406: The open background of the first application obtains a callback link associated with the permission group collaborator identifier.
[0134] S407, the open background of the first application program calls the callback link to send a permission authentication request to the second application program.
[0135] S408: After the second application receives the permission authentication request, the second application determines whether there is a requesting user identifier in the permission user group corresponding to the permission group collaborator identifier.
[0136] The permission authentication request may also carry the signature of the first application or the digital certificate of the first application. When the second application receives the permission authentication request, the second application can verify whether the signature of the first application or the digital certificate of the first application exists in the permission authentication request; if so, the second application can verify whether the signature of the first application or the digital certificate of the first application is legal. If legal, the second application further determines whether the requesting user identifier exists in the permission user group corresponding to the permission group collaborator identifier. If the signature of the first application or the digital certificate of the first application does not exist in the permission authentication request, or the signature of the first application or the digital certificate of the first application is illegal, the second application determines that the permission authentication request is illegal, and the second application stops further authentication of the permission authentication request. In this way, the authentication accuracy can be improved.
[0137] S409: If yes, the second application sends a successful authentication result to the open background of the first application.
[0138] The authentication result of a successful authentication may carry the type of operation authority possessed by the requesting user identity.
[0139] S410, the open background of the first application sends the authentication result of successful authentication to the permission background of the first application.
[0140] S411, the permission background of the first application checks whether the permission group collaborator identifier has the document operation permission.
[0141] S412: If yes, the permission background of the first application sends an authentication result of successful authentication to the client of the first application.
[0142] In step S411 to step S412, the permission background of the first application can check whether the permission group collaborator identifier has the operation permission of the document. Further, the permission background of the first application can also check whether the type of operation permission possessed by the permission group collaborator identifier is the same as the type of operation permission possessed by the requesting user identifier. If the permission group collaborator identifier has the operation permission of the document, and the type of operation permission possessed by the permission group collaborator identifier is the same as the type of operation permission possessed by the requesting user identifier, the permission background of the first application sends an authentication result of successful authentication to the client of the first application.
[0143] S413, the client of the first application program outputs a first response page of the operation request to the requesting user according to the authentication result of successful authentication.
[0144] The client of the first application can output a first response page to the requesting user according to the authentication result of the successful authentication, and display the document in the first response page. If the type of operation permission carried in the authentication result of the successful authentication is the editing permission, the client of the first application can perform the editing operation on the document according to the editing request.
[0145] exist Figure 4 In the illustrated embodiment, through the collaboration between the second application, the open background of the first application, the permission background of the first application and the client of the first application, the authentication of the requesting user who initiates the operation request for the document is completed, and the situation of successful authentication is described.
[0146] Figure 5 A schematic diagram of a flow chart of an authentication phase provided by another exemplary embodiment of the present application is shown. Figure 5 As shown, the authentication stage includes the following steps S501 to S512:
[0147] S501, requesting a user to initiate an operation request for a document.
[0148] S502: When the client of the first application detects an operation request initiated for a document in the first application, the client of the first application obtains a document identifier of the document and a requesting user identifier.
[0149] S503: The client of the first application sends an authentication request to the permission background of the first application.
[0150] S504, the permission center of the first application responds to the authentication request and obtains the permission group collaborator identifier of the document according to the document identifier.
[0151] S505, the permission background of the first application sends a permission authentication request to the open background of the first application.
[0152] S506: The open background of the first application obtains a callback link associated with the permission group collaborator identifier.
[0153] S507: The open background of the first application program calls the callback link to send a permission authentication request to the second application program.
[0154] S508: After the second application receives the permission authentication request, the second application determines whether there is a requesting user identifier in the permission user group corresponding to the permission group collaborator identifier.
[0155] Figure 5 The specific execution process of steps S501 to S508 in the embodiment shown can be found in Figure 4 The description of the illustrated embodiment will not be repeated here.
[0156] S509: If not, the second application sends an authentication result indicating authentication failure to the open background of the first application.
[0157] S510, the open background of the first application sends the authentication result of the failed authentication to the permission background of the first application.
[0158] S511, the permission background of the first application sends an authentication result of failed authentication to the client of the first application.
[0159] S512: The client of the first application program outputs a second response page of the operation request to the requesting user according to the authentication result of the authentication failure.
[0160] The client of the first application can output a second response page to the requesting user according to the authentication result of the authentication failure, and guide the requesting user to apply for the operation authority for the document in the second response page.
[0161] exist Figure 5 In the illustrated embodiment, through the collaboration between the second application, the open background of the first application, the permission background of the first application and the client of the first application, the authentication of the requesting user who initiates the operation request for the document is completed, and the situation of authentication failure is described.
[0162] In the embodiment of the present application, in the permission user group creation stage and the permission user group binding stage, for the first application, the first application saves the trouble of adding the first type of collaborators of the document one by one. The first application only needs to add the permission group collaborator identifier of the permission user group of the document, which reduces the cost and burden of the first application to manage multiple collaborators in the second application, and improves the document management efficiency of the first application; for the second application, the second application creates the permission user group and maintains and manages the authorized user identifiers in the permission user group. The first application has no way of knowing the authorized user identifiers in the permission user group and the type of operation permissions possessed by each authorized user identifier, which can effectively protect the user information in the permission user group, meet the privacy protection requirements for the user information in the permission user group, and facilitate the second application to access the first application. In the authentication stage, the first application can send a permission authentication request to the second application through a callback link to request the second application to use the permission user group created by the second application to authenticate the requesting user identifier carried in the permission authentication request, thereby reducing the management and maintenance costs of the first application.
[0163] Based on the above description, see Figure 6 , Figure 6 A flowchart of a document processing method provided by an exemplary embodiment of the present application is shown. The document processing method can be executed by a first application program. The document processing method can include the following steps S601 to S604:
[0164] S601, when an operation request initiated for a document in a first application is detected, a document identifier and a requesting user identifier of the document are obtained.
[0165] Operation requests may include but are not limited to: viewing requests, editing requests, etc. For example, a requesting user may initiate a viewing request for a document through a document entry in a client of a first application (e.g., a web application, a mobile or desktop application, or a mini-program, etc.), and initiate an editing request for a document through an editing option in a client of the first application (e.g., a font option, a paragraph option, etc.); or, a requesting user may initiate a viewing request for a document through a document entry in a client of a second application. When an operation request initiated for a document in the first application is detected, a document identifier of the document and a requesting user identifier may be obtained.
[0166] S602: Obtain the authority group collaborator identifier of the document according to the document identifier.
[0167] After obtaining the document identifier of the document, the permission group collaborator identifier of the document can be obtained according to the document identifier; the permission group collaborator identifier can be used to represent a permission user group that has the operation authority of the document, and the permission user group is created by the second application.
[0168] The permission group collaborator identifier is assigned by the first application to the permission user group created by the second application. The process of the first application assigning the permission group collaborator identifier to the permission user group may include: receiving a permission user group creation request sent by the second application, the permission user group creation request may carry a document identifier and an identifier of the second application; assigning the permission group collaborator identifier to the permission user group according to the permission user group creation request, and returning the permission group collaborator identifier to the second application.
[0169] After returning the permission group collaborator identifier to the second application, the authorization request sent by the second application can be received and responded to, and the operation permission of the document can be opened to the permission group collaborator identifier; the authorization request can carry the permission group collaborator identifier, the identifier of the second application, the document identifier (for example, it can be a document ID or a document link), the type of operation permission, etc. The process of the first application opening the operation permission of the document to the permission group collaborator identifier can include: performing a legality check on the authorization request, and the legality check can refer to checking whether the content carried in the authorization request is correct and credible, such as checking whether the format of the document identifier is the standard document identifier format specified by the first application, or checking whether the permission group collaborator identifier, the identifier of the second application, and the document identifier carried in the authorization request are the same as the permission group collaborator identifier, the identifier of the second application, and the document identifier stored in association with the first application, etc.; if the legality check passes, the permission group collaborator identifier is added to the document collaborator list of the document, the operation permission requested in the authorization request is configured for the permission group collaborator identifier, and an authorization response message is sent to the second application, and the authorization response message is used to indicate that the permission group collaborator identifier obtains the operation permission of the document.
[0170] The document collaborator list may include one or more collaborator identifiers of the document, and the type of document operation permissions possessed by each collaborator identifier. Each collaborator identifier in the document collaborator list has the document operation permissions. The collaborator identifier may include a first type collaborator identifier or a permission group collaborator identifier (i.e., a second type collaborator identifier). The document collaborator list can be used to effectively manage document permissions. Table 1 shows a document collaborator list provided by an exemplary embodiment of the present application. As shown in Table 1 below, the document collaborator list includes a first type collaborator identifier 1, a first type collaborator identifier 2, a permission group collaborator identifier 1, and a permission group collaborator identifier 2. The first type collaborator identifier 1 has the document viewing permission, the first type collaborator identifier 2 has the document editing permission, the permission group collaborator identifier 1 has the document editing permission, and the permission group collaborator identifier 2 has the document viewing permission.
[0171] Table 1
[0172] Collaborator ID Operation permission type First type collaborator ID 1 View permissions First type collaborator identifier 2 Edit permissions Permission group collaborator ID 1 Edit permissions Authorization Group Collaboration Group Identifier 2 View permissions
[0173] S603, sending a permission authentication request to the second application, where the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier and return the authentication result.
[0174] After obtaining the permission group collaborator identifier and the requesting user identifier, a permission authentication request can be sent to the second application. The permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier and return the authentication result. The permission authentication request can carry the permission group collaborator identifier and the requesting user identifier. The way in which the first application sends the permission authentication request to the second application may include but is not limited to the following two: the first application stores the identifier and callback link of the second application in association, and the callback link can be used to access the second application, for example, the callback link can be the access address of the second application; the callback link can be called to send the permission authentication request to the second application; in this way, the first application can call the callback link to request the second application for authentication, which facilitates the second application to access the first application. Alternatively, a communication connection can be established between the first application and the second application through the document authentication transmission protocol; the permission authentication request can be encapsulated into a permission authentication data packet, and the permission authentication data packet can be sent to the second application based on the document authentication transmission protocol; in this way, the permission authentication data packet complies with the provisions of the document authentication transmission protocol to realize the first application requesting authentication from the second application, further improving the convenience of the first application sending the permission authentication request to the second application.
[0175] S604: Output a response page of the operation request according to the authentication result.
[0176] Operation requests may include but are not limited to: viewing requests or editing requests; operation permissions may include but are not limited to: viewing permissions or editing permissions; if the authentication result is successful, the authentication result carries the type of operation permissions that the requesting user ID has. If the authentication result is successful, the first response page can be output according to the successful authentication result, and the document can be displayed in the first response page; if the type of operation permissions that the requesting user ID carries in the authentication result is editing permissions, the editing operation can be performed on the document according to the editing request. Figure 7a A schematic diagram of a response page provided by an exemplary embodiment of the present application is shown. Figure 7a As shown, if the authentication result is successful, the first response page 70 can be output and the document 701 can be displayed in the first response page 70; if the authentication result carries the type of operation permission possessed by the requesting user identifier as editing permission, the editing operation can be performed on the document according to the editing request. For example, the editing request instructs the requesting user to click the left-aligned option 702 in the first response page, and the content in the document can be adjusted to the left alignment according to the editing request.
[0177] If the authentication result is authentication failure, a second response page can be output according to the authentication result of authentication failure, and the second response page may include an authentication failure prompt message and a permission application option; when the permission application option is selected, the operation permission of the document can be opened to the requesting user ID; the permission application option may include a viewing permission application option or an editing permission application option, and when the viewing permission application option is selected, the viewing permission of the document can be opened to the requesting user ID; when the editing permission application option is selected, the editing permission of the document can be opened to the requesting user ID. Figure 7b A schematic diagram of a response page provided by another exemplary embodiment of the present application is shown. Figure 7b As shown, if the authentication result is authentication failure, a second response page 71 may be output; the second response page 71 may include an authentication failure prompt message 711 (eg Figure 7b The authentication failure prompt message "The document has set permissions, you can apply for the document operation permission from the second application"); the second response page 71 can also include a view permission application option 712 (for example Figure 7b "Request viewing permission" option) and edit permission request option 713 (e.g. Figure 7b "Request Edit Permissions" option).
[0178] Opening the operating permissions of a document to a requesting user ID may include two situations: in one implementation, when the permission application option is selected, the requesting user ID can be set as a first type collaborator ID, that is, the requesting user ID is added to the document collaborator list of the document, and the operating permissions of the document are configured for the requesting user ID; for example, when the viewing permission application option is selected, the requesting user ID is added to the document collaborator list of the document, and the viewing permissions of the document are configured for the requesting user ID; or, when the editing permission application option is selected, the requesting user ID is added to the document collaborator list of the document, and the editing permissions of the document are configured for the requesting user ID; in this way, if authentication fails, the requesting user can apply to become the first type of collaborator of the document, thereby meeting the user's document processing needs. In another implementation, when the permission application option is selected, a permission application request can be sent to the second application, and the permission application request can be used to trigger the second application to add the requesting user identifier to the permission user group and configure the document operation permissions for the requesting user identifier; the permission application request may include a viewing permission application request or an editing permission application request; for example, when the viewing permission application option is selected, a viewing permission application request can be sent to the second application, and the viewing permission application request can be used to trigger the second application to add the requesting user identifier to the permission user group and configure the document viewing permissions for the requesting user identifier; or, when the editing permission application option is selected, an editing permission application request can be sent to the second application, and the editing permission application request can be used to trigger the second application to add the requesting user identifier to the permission user group and configure the document editing permissions for the requesting user identifier; in this way, if authentication fails, the requesting user can apply to become a member of the second type of collaborator of the document to meet the user's document processing needs.
[0179] In the embodiment of the present application, when an operation request initiated for a document in the first application is detected, the document identifier and the requesting user identifier of the document are obtained; if the document has a permission group collaborator identifier, the first application requests the second application to authenticate the requesting user identifier based on the permission group collaborator identifier, effectively reducing the authentication cost of the first application while ensuring accurate authentication, and effectively protecting the user information in the permission user group of the second application. In the event of authentication failure, the requesting user can apply to become a member of the first type of collaborator of the document or the second type of collaborator of the document to meet the usage needs of the document user.
[0180] See also Figure 8 , Figure 8 A flowchart of a document processing method provided by another exemplary embodiment of the present application is shown. The document processing method may be executed by a second application program. The document processing method may include the following steps S801 to S803:
[0181] S801, receiving a permission authentication request sent by a first application, wherein the permission authentication request carries a permission group collaborator identifier and a requesting user identifier.
[0182] The permission authentication request is sent by the first application after it detects an operation request initiated for a document within the first application, obtains the document identifier and requesting user identifier of the document, and obtains the permission group collaborator identifier based on the document identifier. The permission group collaborator identifier is used to represent a permission user group that has permission to operate the document, and the permission user group is created by the second application.
[0183] The process of the second application creating a permission user group may include: sending a permission user group creation request to the first application, the permission user group creation request carries a document identifier and an identifier of the second application; receiving a permission group collaborator identifier sent by the first application, the permission group collaborator identifier is assigned by the first application according to the permission user group creation request; creating a permission user group according to the permission group collaborator identifier; adding one or more authorized user identifiers to the permission user group, and configuring at least one operation permission for any authorized user identifier in the permission user group. In one implementation, if the first application configures a document operation permission type for the permission group collaborator identifier, such as the document viewing permission, then each authorized device identifier in the permission user group corresponding to the permission group collaborator identifier has the document viewing permission. Table 2 shows a table structure of a permission user group provided by an exemplary embodiment of the present application. As shown in Table 2, the permission user group includes 3 authorized user identifiers, and the first application configures the document viewing permission for the permission group collaborator identifier, then each authorized device identifier in the permission user group corresponding to the permission group collaborator identifier has the document viewing permission. In this way, each authorized user identifier in the permission user group has the same document operation permission type in the first application, which facilitates the second application to manage the permission user group. In another implementation, if the first application configures one or more types of document operation permissions for the permission group collaborator identifier, such as the document viewing permission, document editing permission and document sharing permission, then each authorized device identifier in the permission user group corresponding to the permission group collaborator identifier can have at least one operation permission of the document, such as the document viewing permission, document editing permission or document sharing permission. Table 3 shows a table structure of a permission user group provided by another exemplary embodiment of the present application. As shown in Table 3, the permission user group includes 3 authorized user identifiers. The first application configures the document editing permission and document sharing permission for the permission group collaborator identifier. Then each authorized device identifier in the permission user group corresponding to the permission group collaborator identifier can have any one or two of the document editing permission or document sharing permission. For example, in Table 3, authorized user identifier 1 has the document editing permission, authorized user identifier 2 has the document editing permission and document sharing permission, and authorized user identifier 3 has the document sharing permission. In this way, the authorized user identifier in the authorized user group has at least one document operation permission type in the first application, which enriches the authorized user group management method of the second application and better meets the document processing needs of document users.
[0184] Table 2
[0185] Authorized user ID Operation permission type Authorized user ID 1 View permissions Authorized User ID 2 View permissions Authorized user ID 3 View permissions
[0186] Table 3
[0187] Authorized user ID Operation permission type Authorized user ID 1 Edit permissions Authorized User ID 2 Editing and Sharing Permissions Authorized user ID 3 Sharing permissions
[0188] S802: Authenticate the requesting user ID according to the permission group collaborator ID.
[0189] The permission user group includes one or more authorized user identifiers, and each authorized user identifier in the permission user group has at least one operation permission for the document; authenticating the requesting user identifier based on the permission group collaborator identifier may include: verifying whether the requesting user identifier exists in the permission user group; if so, generating an authentication result of successful authentication, and obtaining the type of operation permission possessed by the requesting user identifier, and adding the type of operation permission possessed by the requesting user identifier to the authentication result; if not, generating an authentication result of failed authentication.
[0190] S803, returning the authentication result to the first application.
[0191] After the requesting user identifier is authenticated according to the permission group collaborator identifier, the authentication result is returned to the first application.
[0192] In the event of an authentication failure, a permission application request sent by the first application may also be received. The permission application request is sent by the first application when the authentication result is an authentication failure. The permission application request includes a requesting user identifier. In response to the permission application request, the requesting user identifier may be verified to determine whether the requesting user identifier belongs to the second application. If the requesting user identifier belongs to the second application, the requesting user identifier is added to the permission user group, and at least one operation permission is configured for the requesting user identifier. The permission application request may include a viewing permission application request or an editing permission application request. When the permission application request is a viewing permission application request, the requesting user identifier may be added to the permission user group in response to the viewing permission application request, and viewing permission may be configured for the requesting user identifier. When the permission application request is an editing permission application request, the requesting user identifier may be added to the permission user group in response to the editing permission application request, and editing permission may be configured for the requesting user identifier.
[0193] In an embodiment of the present application, when a permission authentication request sent by the first application is received, the requesting user identifier carried in the permission authentication request can be authenticated according to the permission group collaborator identifier carried in the permission authentication request. If the requesting user identifier exists in the permission user group corresponding to the permission group collaborator identifier, an authentication result of successful authentication is generated. If the requesting user identifier does not exist in the permission user group corresponding to the permission group collaborator identifier, an authentication result of failed authentication is generated, and the authentication result is returned to the first application. It can be seen from the above scheme that the second application maintains and manages the permission user group, which can meet the need for privacy protection of the information of each user in the permission user group. In addition, in the event of an authentication failure, the second application can set the requesting user identifier as a member of the permission user group so that the requesting user identifier has the authority to operate the document and meets the document usage needs of the requesting user.
[0194] See also Fig. 9 , Fig. 9 A flowchart of a document processing method provided by another exemplary embodiment of the present application is shown. The document processing method can be interactively executed by a first application and a second application. The document processing method can include the following steps S901 to S906:
[0195] S901, when an operation request initiated for a document in a first application is detected, the first application obtains a document identifier of the document and a requesting user identifier.
[0196] Operation requests may include but are not limited to: viewing requests, editing requests, etc. For example, a requesting user may initiate a viewing request for a document through a document entry in a client of a first application (e.g., a web application, a mobile or desktop application, or a mini-program, etc.), and initiate an editing request for a document through an editing option in a client of the first application (e.g., a font option, a paragraph option, etc.); or, a requesting user may initiate a viewing request for a document through a document entry in a client of a second application. When an operation request initiated for a document in a first application is detected, the first application may obtain a document identifier of the document and a requesting user identifier.
[0197] S902: The first application obtains the permission group collaborator identifier of the document according to the document identifier.
[0198] After obtaining the document identifier, the first application may identify the collaborator according to the permission group; the permission group collaborator identifier may be used to represent a permission user group that has the permission to operate the document, and the permission user group is created by the second application.
[0199] S903: The first application sends a permission authentication request to the second application. The permission authentication request carries a permission group collaborator identifier and a requesting user identifier.
[0200] After obtaining the permission group collaborator identifier and the requesting user identifier, the first application may send a permission authentication request to the second application, which is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier and return the authentication result.
[0201] S904: The second application authenticates the requesting user identifier according to the permission group collaborator identifier.
[0202] The permission user group may include one or more authorized user identifiers, and each authorized user identifier in the permission user group has at least one operation permission on the document; the second application may authenticate the requesting user identifier based on the permission group collaborator identifier, which may include: verifying whether the requesting user identifier exists in the permission user group; if so, generating an authentication result of successful authentication, obtaining the type of operation permission possessed by the requesting user identifier, and adding the type of operation permission possessed by the requesting user identifier to the authentication result; if not, generating an authentication result of failed authentication.
[0203] S905, the second application returns the authentication result to the first application.
[0204] After the second application authenticates the requesting user identifier according to the permission group collaborator identifier, the second application may return the authentication result to the first application.
[0205] S906: The first application program outputs a response page of the operation request according to the authentication result.
[0206] Operation requests may include but are not limited to: viewing requests or editing requests; operation permissions may include but are not limited to: viewing permissions or editing permissions; if the authentication result is successful, the authentication result carries the type of operation permissions possessed by the requesting user ID. If the authentication result is successful, a first response page may be output based on the authentication result of successful authentication, and the document may be displayed on the first response page; if the type of operation permissions possessed by the requesting user ID carried in the authentication result is editing permissions, an editing operation may be performed on the document based on the editing request. If the authentication result is failed, a second response page may be output based on the authentication result of failed authentication, and the second response page may include an authentication failure prompt message and a permission application option; when the permission application option is selected, the document's operation permissions may be opened to the requesting user ID.
[0207] Before the first application obtains the document's permission group collaborator identifier based on the document identifier, the first application can first verify whether the requesting user identifier is the first type of collaborator identifier of the document, that is, verify whether the requesting user identifier exists in the document collaborator list of the document. If it exists, the first application determines that the authentication is successful, and the first application can output the first response page according to the authentication result of the successful authentication; if the requesting user identifier has the viewing authority of the document, the first application can display the document in the first response page; if the requesting user identifier has the editing authority of the document, the first application can display the document in the first response page and perform editing operations on the document according to the editing request. If it does not exist, the first application can obtain the document's permission group collaborator identifier based on the document identifier, and send a permission authentication request to the second application, requesting the second application to authenticate the requesting user identifier. In this way, if the requesting user identifier is a first type of collaborator identifier, the first application can directly perform authentication without requesting the second application to perform authentication, thereby improving the authentication efficiency of the first application.
[0208] It should be noted that the operation request can be any operation request initiated for a document in the first application and detected by the first application, that is, the first application needs to authenticate the requesting user identifier of each detected operation request, in this way, the accuracy of authentication can be improved. Alternatively, the operation request can be the first operation request initiated for a document in the first application and detected by the first application. When the authentication is successful, the first application can directly respond to other operation requests initiated by the same requesting user for the document. Other operation requests refer to operation requests whose request time is after the first operation request. In this way, the efficiency of authentication can be improved. Alternatively, the operation request may be the first operation request initiated for a document within the first application and detected by the first application. When authentication is successful, the first application may store the document identifier in association with the requesting user identifier. When other operation requests for the document are received from the same requesting user, the first application may not request the second application for authentication, but may directly verify whether the requesting user identifier that initiates other operation requests is the same as the requesting user identifier associated and stored in the first application. If they are the same, authentication is determined to be successful. Other operation requests refer to operation requests whose request time is after the first operation request. The first application may also update the associated stored document identifier and requesting user identifier at every preset time period. In this way, the authentication efficiency is improved while ensuring the authentication accuracy.
[0209] In an embodiment of the present application, when there is a requesting user identifier in the document collaborator list of the document, that is, the requesting user identifier is the first type of collaborator identifier of the document, the first application can directly authenticate the requesting user identifier without requesting the second application for authentication, thereby improving the authentication efficiency of the first application; when there is no requesting user identifier in the document collaborator list of the document, and there is a permission group collaborator identifier in the document collaborator list, that is, the user corresponding to the requesting user identifier is a member of the second type of collaborators of the document, the first application can request the second application for authentication, thereby reducing the authentication cost of the first application; the permission user group is created, managed and maintained by the second application, effectively protecting the information of each user in the permission user group from being exposed to the first application.
[0210] The method of the embodiment of the present application is described in detail above. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0211] See also Fig.10 , Fig.10 The schematic diagram of the structure of a document processing device provided by an exemplary embodiment of the present application is shown. The document processing device 100 can be set in a first application program. The document processing device 100 can be used to execute Figures 2 to 9 In the corresponding steps of the first application in the method embodiment shown, the document processing device 100 may include the following units:
[0212] The acquisition unit 1001 is used to acquire the document identifier and the requesting user identifier of the document when an operation request initiated for the document in the first application is detected;
[0213] The acquisition unit 1001 is further used to acquire the permission group collaborator identifier of the document according to the document identifier, where the permission group collaborator identifier is used to represent a permission user group having the operation permission of the document, and the permission user group is created by the second application;
[0214] The sending unit 1002 is used to send a permission authentication request to the second application, the permission authentication request carries the permission group collaborator identifier and the requesting user identifier, and the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier and return the authentication result;
[0215] The processing unit 1003 is used to output a response page of the operation request according to the authentication result.
[0216] In one implementation, the document processing device 100 further includes a receiving unit 1004; the receiving unit 1004 is configured to receive a permission user group creation request sent by the second application, the permission user group creation request carrying a document identifier and an identifier of the second application;
[0217] The processing unit 1003 is further configured to allocate a permission group collaborator identifier to the permission user group according to the permission user group creation request;
[0218] The sending unit 1002 is further used to return the permission group collaborator identifier to the second application;
[0219] The receiving unit 1004 is further configured to receive an authorization request sent by the second application, wherein the authorization request carries an identifier of a collaborator of the permission group;
[0220] The processing unit 1003 is further configured to, in response to the authorization request, identify the operation authority of the open document to the authority group collaborators.
[0221] In one implementation, the processing unit 1003 is specifically configured to:
[0222] Conduct legality verification on authorization requests;
[0223] If the legality check passes, the permission group collaborator ID is added to the document collaborator list of the document, the document collaborator list includes one or more collaborator IDs of the document, and each collaborator ID in the document collaborator list has the operation authority of the document;
[0224] An authorization response message is sent to the second application, where the authorization response message is used to indicate that the permission group collaborator identifier obtains the document operation permission.
[0225] In one implementation, the first application stores an identifier of the second application and a callback link in association; the callback link is used to access the second application; and the sending unit 1002 is specifically used to:
[0226] The callback link is called to send the permission authentication request to the second application.
[0227] In one implementation, a communication connection is established between the first application and the second application via a document authentication transmission protocol; the sending unit 1002 is specifically configured to:
[0228] The authority authentication request is encapsulated into an authority authentication data packet, and the authority authentication data packet is sent to the second application based on the document authentication transmission protocol.
[0229] In one implementation, the operation request includes a viewing request or an editing request; the operation authority includes a viewing authority or an editing authority; if the authentication result is successful, the authentication result carries the type of operation authority possessed by the requesting user identifier; the processing unit 1003 is specifically used to:
[0230] If the authentication result is successful, the first response page is output and the document is displayed in the first response page;
[0231] If the type of operation permission that the requesting user identifier carries in the authentication result is editing permission, the editing operation is performed on the document according to the editing request.
[0232] In one implementation, the processing unit 1003 is specifically configured to:
[0233] If the authentication result is authentication failure, a second response page is output, which includes an authentication failure prompt message and a permission application option;
[0234] When the permission request option is selected, the document operation permissions are opened to the requesting user ID.
[0235] According to one embodiment of the present application, Fig.10 The various units in the document processing device 100 shown can be individually or completely combined into one or several other units to form a whole, or one (or some) of the units can be further divided into multiple functionally smaller units to form a whole, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the document processing device 100 can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, it is possible to execute the following operations by running on a general-purpose computing device including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figures 2 to 9 A computer program (including program code) for each step of the first application program involved in the corresponding method shown in Fig.10 The document processing apparatus 100 shown in the figure can be used to implement the document processing method of the embodiment of the present application. The computer program can be recorded on a computer-readable storage medium, for example, and loaded into the computing device through the computer-readable storage medium and run therein.
[0236] In an embodiment of the present application, when an operation request initiated for a document within a first application is detected, the document identifier and the requesting user identifier of the document are obtained, and the permission group collaborator identifier of the document is obtained based on the document identifier, the permission group collaborator identifier is used to represent a permission user group that has permission to operate the document, and the permission user group is created by a second application; a permission authentication request is sent to the second application, the permission authentication request carries the permission group collaborator identifier and the requesting user identifier, the permission authentication request is used to trigger the second application to authenticate the requesting user identifier based on the permission group collaborator identifier, and return the authentication result; and a response page for the operation request is output based on the authentication result. It can be seen from the above scheme that, firstly, through the method of permission user groups, a permission user group can be added and set as a collaborator of the document at one time, which effectively improves the efficiency of setting collaborators; secondly, the permission user group is created and managed by the second application, and the information of each user in the permission user group does not need to be exposed to the first application, which can meet the need for privacy protection of the information of each user in the permission user group; in addition, when the requesting user initiates an operation request for the document in the first application, the second application is used for authentication, which can effectively share the management burden of the first application and reduce management and maintenance costs.
[0237] See also Fig.11 , Fig.11 A schematic diagram of the structure of a document processing device provided by another exemplary embodiment of the present application is shown. The document processing device 110 can be set in a first application program. The document processing device 110 can be used to execute Figures 2 to 9 In the corresponding steps of the second application in the method embodiment shown, the document processing device 110 may include the following units:
[0238] The receiving unit 1101 is used to receive a permission authentication request sent by the first application, wherein the permission authentication request carries a permission group collaborator identifier and a requesting user identifier; wherein, when the first application detects an operation request initiated for a document in the first application, it obtains the document identifier and the requesting user identifier of the document, and obtains the permission group collaborator identifier according to the document identifier; the permission group collaborator identifier is used to represent a permission user group having the operation permission of the document, and the permission user group is created by the second application;
[0239] Processing unit 1102, used to authenticate the requesting user ID according to the permission group collaborator ID;
[0240] The sending unit 1103 is used to return the authentication result to the first application.
[0241] In one implementation, the authorized user group includes one or more authorized user identifiers, and each authorized user identifier in the authorized user group has at least one operation permission on the document; the processing unit 1102 is specifically configured to:
[0242] Verify whether the requesting user ID exists in the authorized user group;
[0243] If yes, generate an authentication result of successful authentication, obtain the type of operation authority possessed by the requesting user identity, and add the type of operation authority possessed by the requesting user identity to the authentication result;
[0244] If not, an authentication result indicating authentication failure is generated.
[0245] In one implementation, the sending unit 1103 is further configured to send a permission user group creation request to the first application, wherein the permission user group creation request carries a document identifier and an identifier of the second application;
[0246] The receiving unit 1101 is further configured to receive a permission group collaborator identifier sent by the first application, where the permission group collaborator identifier is allocated by the first application according to a permission user group creation request;
[0247] The processing unit 1102 is further configured to create a permission user group according to the permission group collaborator identifier; and
[0248] Add one or more authorized user IDs to the authorized user group, and configure at least one operation permission for any authorized user ID in the authorized user group.
[0249] In one implementation, the receiving unit 1101 is further configured to receive a permission application request sent by the first application, the permission application request being sent by the first application when the authentication result is an authentication failure, and the permission application request includes a requesting user identifier;
[0250] The processing unit 1102 is further configured to, in response to the permission application request, add the requesting user identifier to the permission user group and configure at least one operation permission for the requesting user identifier.
[0251] According to one embodiment of the present application, Fig.11The various units in the document processing device 110 shown can be individually or completely combined into one or several other units to form a whole, or one (or some) of the units can be further divided into multiple functionally smaller units to form a whole, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the document processing device 110 can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, it is possible to execute the following operations by running on a general-purpose computing device including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figures 2 to 9 A computer program (including program code) for each step of the second application program involved in the corresponding method shown in Fig.11 The document processing apparatus 110 shown in the figure can be used to implement the document processing method of the embodiment of the present application. The computer program can be recorded on a computer-readable storage medium, for example, and loaded into the computing device through the computer-readable storage medium and run therein.
[0252] In the embodiment of the present application, when receiving the permission authentication request sent by the first application, the request user identifier carried in the permission authentication request can be authenticated according to the permission group collaborator identifier carried in the permission authentication request, and the authentication result is returned to the first application; wherein, the permission authentication request is sent by the first application after obtaining the document identifier and the request user identifier of the document and obtaining the permission group collaborator identifier according to the document identifier when detecting an operation request initiated for a document in the first application, and the permission group collaborator identifier is used to represent a permission user group with the operation authority of the document, and the permission user group is created by the second application. It can be seen from the above scheme that, firstly, the permission user group is created and managed by the second application, and the first application cannot obtain the information of each user in the permission user group, which can meet the need for privacy protection of the information of each user in the permission user group; secondly, through the permission user group, a permission user group can be added and set as a collaborator of the document at one time, which effectively improves the setting efficiency of the collaborator; in addition, when the requesting user initiates an operation request for the document in the first application, the second application performs authentication, which can effectively share the management burden of the first application and reduce the management and maintenance costs.
[0253] See also Fig.12 , Fig.12A schematic diagram of the structure of a document processing device provided by an exemplary embodiment of the present application is shown, and the document processing device 120 at least includes a processor 1201, a computer-readable storage medium 1202 and a communication interface 1203. Among them, the processor 1201, the computer-readable storage medium 1202 and the communication interface 1203 can be connected via a bus or other means. The communication interface 1203 can be used to receive or send data. The computer-readable storage medium 1202 can be stored in a memory, and the computer-readable storage medium 1202 is used to store a computer program, and the computer program includes computer instructions. The processor 1201 is used to execute computer instructions. The processor 1201 (or CPU (Central Processing Unit)) is the computing core and control core of the document processing device 120, which is suitable for implementing one or more computer instructions, and is specifically suitable for loading and executing one or more computer instructions to implement the corresponding method flow or corresponding function.
[0254] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in the document processing device 120 for storing programs and data. It can be understood that the computer-readable storage medium 1202 here can include both the built-in storage medium in the document processing device 120 and the extended storage medium supported by the document processing device 120. The computer-readable storage medium provides a storage space, which stores the operating system of the document processing device 120. In addition, one or more computer instructions suitable for being loaded and executed by the processor 1201 are also stored in the storage space, and these computer instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium 1202 here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor 1201.
[0255] In one embodiment, the document processing device 120 can be used to implement the corresponding steps of the first application program. The computer readable storage medium 1202 stores a computer program, which can include one or more first computer instructions. The processor 1201 loads and executes the one or more first computer instructions to implement Figures 2 to 9 The corresponding steps of the first application program in the method embodiment shown; in a specific implementation, one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 and execute the following steps:
[0256] When an operation request initiated for a document in the first application is detected, obtaining a document identifier of the document and a requesting user identifier;
[0257] Acquire a permission group collaborator identifier of the document according to the document identifier, where the permission group collaborator identifier is used to represent a permission user group that has the permission to operate the document, and the permission user group is created by the second application;
[0258] Sending a permission authentication request to the second application, the permission authentication request carrying the permission group collaborator identifier and the requesting user identifier, the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier, and return the authentication result;
[0259] Output the response page of the operation request based on the authentication result.
[0260] In one implementation, one or more first computer instructions in the computer readable storage medium 1202 are loaded by the processor 1201 and further perform the following steps:
[0261] receiving a permission user group creation request sent by the second application, wherein the permission user group creation request carries a document identifier and an identifier of the second application;
[0262] Allocate a permission group collaborator identifier to the permission user group according to the permission user group creation request, and return the permission group collaborator identifier to the second application;
[0263] Receiving an authorization request sent by a second application, wherein the authorization request carries an identifier of a permission group collaborator;
[0264] In response to the authorization request, the operation authority of the open document is identified to the authority group collaborators.
[0265] In one implementation, 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 identifying the operation permission of the open document to the permission group collaborator, the following steps are specifically performed:
[0266] Conduct legality verification on authorization requests;
[0267] If the legality check passes, the permission group collaborator ID is added to the document collaborator list of the document, the document collaborator list includes one or more collaborator IDs of the document, and each collaborator ID in the document collaborator list has the operation authority of the document;
[0268] An authorization response message is sent to the second application, where the authorization response message is used to indicate that the permission group collaborator identifier obtains the document operation permission.
[0269] In one implementation, the first application stores an identifier of the second application and a callback link in association; the callback link is used to access the second application; when the processor 1201 loads one or more first computer instructions in the computer-readable storage medium 1202 and executes the step of sending a permission authentication request to the second application, the following steps are specifically performed:
[0270] The callback link is called to send the permission authentication request to the second application.
[0271] In one implementation, a communication connection is established between the first application and the second application via a document authentication transmission protocol; when one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 and the step of sending a permission authentication request to the second application is executed, the following steps are specifically performed:
[0272] The authority authentication request is encapsulated into an authority authentication data packet, and the authority authentication data packet is sent to the second application based on the document authentication transmission protocol.
[0273] In one implementation, the operation request includes a viewing request or an editing request; the operation permission includes a viewing permission or an editing permission; if the authentication result is successful authentication, the authentication result carries the type of operation permission possessed by the requesting user identifier; when one or more first computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 and the step of outputting a response page of the operation request according to the authentication result is executed, the following steps are specifically performed:
[0274] If the authentication result is successful, the first response page is output and the document is displayed in the first response page;
[0275] If the type of operation permission that the requesting user identifier carries in the authentication result is editing permission, the editing operation is performed on the document according to the editing request.
[0276] In one implementation, 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 page of the operation request according to the authentication result, the following steps are specifically performed:
[0277] If the authentication result is authentication failure, a second response page is output, which includes an authentication failure prompt message and a permission application option;
[0278] When the permission request option is selected, the document operation permissions are opened to the requesting user ID.
[0279] In this embodiment, when an operation request initiated for a document within a first application is detected, the document identifier and the requesting user identifier of the document are obtained, and the permission group collaborator identifier of the document is obtained based on the document identifier, the permission group collaborator identifier is used to represent a permission user group that has permission to operate the document, and the permission user group is created by the second application; a permission authentication request is sent to the second application, the permission authentication request carries the permission group collaborator identifier and the requesting user identifier, the permission authentication request is used to trigger the second application to authenticate the requesting user identifier based on the permission group collaborator identifier, and return the authentication result; and a response page for the operation request is output based on the authentication result. It can be seen from the above scheme that, firstly, through the method of permission user groups, a permission user group can be added and set as a collaborator of the document at one time, which effectively improves the efficiency of setting collaborators; secondly, the permission user group is created and managed by the second application, and the information of each user in the permission user group does not need to be exposed to the first application, which can meet the need for privacy protection of the information of each user in the permission user group; in addition, when the requesting user initiates an operation request for the document in the first application, the second application is used for authentication, which can effectively share the management burden of the first application and reduce management and maintenance costs.
[0280] In another embodiment, the document processing device 120 may be used to implement the corresponding steps of the second application program. The computer readable storage medium 1202 stores a computer program, which may include one or more second computer instructions. The processor 1201 loads and executes the one or more second computer instructions to implement Figures 2 to 9 The corresponding steps of the second application program in the method embodiment shown; in a specific implementation, one or more second computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 and execute the following steps:
[0281] Receive a permission authentication request sent by the first application, the permission authentication request carrying a permission group collaborator identifier and a requesting user identifier; wherein the permission authentication request is sent by the first application after the first application detects an operation request initiated for a document in the first application, obtains the document identifier and the requesting user identifier of the document, and obtains the permission group collaborator identifier based on the document identifier, the permission group collaborator identifier is used to represent a permission user group that has the permission to operate the document, and the permission user group is created by the second application;
[0282] Authenticate the requesting user ID according to the permission group collaborator ID;
[0283] The authentication result is returned to the first application.
[0284] In one implementation, the authorized user group includes one or more authorized user identifiers, and each authorized user identifier in the authorized user group has at least one operation permission of the document; when one or more second computer instructions in the computer-readable storage medium 1202 are loaded by the processor 1201 and execute the step of authenticating the requesting user identifier according to the authorized group collaborator identifier, the following steps are specifically performed:
[0285] Verify whether the requesting user ID exists in the authorized user group;
[0286] If yes, generate an authentication result of successful authentication, obtain the type of operation authority possessed by the requesting user identity, and add the type of operation authority possessed by the requesting user identity to the authentication result;
[0287] If not, an authentication result indicating authentication failure is generated.
[0288] In one implementation, the one or more second computer instructions in the computer readable storage medium 1202 are loaded by the processor 1201 and further perform the following steps:
[0289] Sending a permission user group creation request to the first application, wherein the permission user group creation request carries a document identifier and an identifier of the second application;
[0290] Receiving a permission group collaborator identifier sent by the first application, where the permission group collaborator identifier is allocated by the first application according to a permission user group creation request;
[0291] Create permission user groups based on permission group collaborator IDs;
[0292] Add one or more authorized user IDs to the authorized user group, and configure at least one operation permission for any authorized user ID in the authorized user group.
[0293] In one implementation, one or more first computer instructions in the computer readable storage medium 1202 are loaded by the processor 1201 and further perform the following steps:
[0294] Receiving a permission application request sent by a first application, the permission application request is sent by the first application when the authentication result is an authentication failure, and the permission application request includes a requesting user identifier;
[0295] In response to the permission application request, the requesting user identifier is added to the permission user group, and at least one operation permission is configured for the requesting user identifier.
[0296] In this embodiment, when receiving the permission authentication request sent by the first application, the request user identifier carried in the permission authentication request can be authenticated according to the permission group collaborator identifier carried in the permission authentication request, and the authentication result is returned to the first application; wherein, the permission authentication request is sent by the first application after obtaining the document identifier and the request user identifier of the document and obtaining the permission group collaborator identifier according to the document identifier when detecting an operation request initiated for a document in the first application, and the permission group collaborator identifier is used to represent a permission user group with the operation authority of the document, and the permission user group is created by the second application. It can be seen from the above scheme that, firstly, the permission user group is created and managed by the second application, and the first application cannot obtain the information of each user in the permission user group, which can meet the need for privacy protection of the information of each user in the permission user group; secondly, through the permission user group, a permission user group can be added and set as a collaborator of the document at one time, which effectively improves the setting efficiency of the collaborator; in addition, when the requesting user initiates an operation request for the document in the first application, the second application performs authentication, which can effectively share the management burden of the first application and reduce the management and maintenance costs.
[0297] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the document processing method provided in the above-mentioned various optional modes.
[0298] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A document processing method, characterized in that: The method comprises: When an operation request initiated for a document in a first application is received, a permission group collaborator identifier of the document is obtained, the permission group collaborator identifier is used to represent a permission user group that has the permission to operate the document, the permission group collaborator identifier is allocated by the first application to the second application, and the second application creates and manages the permission user group according to the allocated permission group collaborator identifier; the second application is an application that is connected to the first application and is different from the first application; Sending a permission authentication request to the second application, wherein the permission authentication request carries a requesting user identifier of the document, and the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier and return an authentication result; A response page for the operation request is output according to the authentication result.
2. The method according to claim 1, characterized in that The method further comprises: receiving a permission user group creation request sent by the second application, wherein the permission user group creation request carries a document identifier of the document and an identifier of the second application; allocating the permission group collaborator identifier to the permission user group according to the permission user group creation request, and returning the permission group collaborator identifier to the second application; Receiving an authorization request sent by the second application, wherein the authorization request carries the permission group collaborator identifier; In response to the authorization request, the operation authority of the document is opened to the authorization group collaborator identifier.
3. The method according to claim 2, characterized in that The step of opening the operation permission of the document to the permission group collaborator identifier includes: Performing a legality check on the authorization request; If the legality check passes, the permission group collaborator ID is added to the document collaborator list of the document, the document collaborator list includes one or more collaborator IDs of the document, and each collaborator ID in the document collaborator list has the operation authority for the document; An authorization response message is sent to the second application, where the authorization response message is used to indicate that the permission group collaborator identifier obtains the operation permission for the document.
4. The method according to claim 1, characterized in that The first application stores an identifier of the second application and a callback link in association; the callback link is used to access the second application; The sending the permission authentication request to the second application includes: calling the callback link to send the permission authentication request to the second application.
5. The method according to claim 1, characterized in that A communication connection is established between the first application and the second application via a document authentication transmission protocol; The sending of the permission authentication request to the second application includes: encapsulating the permission authentication request into a permission authentication data packet, and sending the permission authentication data packet to the second application based on the document authentication transmission protocol.
6. The method according to claim 1, characterized in that The operation request includes a viewing request or an editing request; the operation request is initiated through the document entry of the first application; or the operation request is initiated through the document entry of the second application; the operation permission includes a viewing permission or an editing permission; If the authentication result is successful, the authentication result carries the type of operation authority possessed by the requesting user identifier; The step of outputting a response page for the operation request according to the authentication result includes: If the authentication result is successful, a first response page is output, and the document is displayed in the first response page; If the type of the operation authority possessed by the requesting user identifier carried in the authentication result is the editing authority, an editing operation is performed on the document according to the editing request.
7. The method according to claim 6, characterized in that The method further comprises: Obtain the operation authority possessed by the collaborator identifier of the authority group; Perform a match check on the type of operation authority possessed by the authority group collaborator identifier and the type of operation authority possessed by the requesting user identifier; If there is a match, the steps of outputting the first response page and displaying the document in the first response page are triggered.
8. The method according to claim 1, characterized in that The step of outputting a response page for the operation request according to the authentication result includes: If the authentication result is authentication failure, a second response page is output, wherein the second response page includes an authentication failure prompt message and a permission application option; When the permission application option is selected, the operation permission of the document is opened to the requesting user ID.
9. A document processing method, characterized in that: The method comprises: Receive a permission authentication request sent by a first application, wherein the permission authentication request carries a requesting user identifier of a document; wherein, when the first application receives an operation request initiated for the document in the first application, it obtains a permission group collaborator identifier of the document; the permission group collaborator identifier is used to represent a permission user group having the operation permission for the document, the permission group collaborator identifier is allocated by the first application to the second application, and the second application creates and manages the permission user group according to the allocated permission group collaborator identifier; the second application is an application connected to the first application and is different from the first application; authenticating the requesting user identifier according to the permission group collaborator identifier; The authentication result is returned to the first application.
10. The method according to claim 9, characterized in that The authorized user group includes one or more authorized user identifiers, and each authorized user identifier in the authorized user group has at least one operation permission for the document; authenticating the requesting user identifier according to the authorized group collaborator identifier includes: Verify whether the requesting user identifier exists in the authorized user group; If yes, generate an authentication result of successful authentication, obtain the type of operation authority possessed by the requesting user identity, and add the type of operation authority possessed by the requesting user identity to the authentication result; If not, an authentication result indicating authentication failure is generated.
11. The method according to claim 9, characterized in that The permission authentication request also carries verification information of the first application; the method further includes: Searching for the verification information in the authority authentication request; If the verification information is successfully found, the first application is verified for legitimacy based on the verification information; If the legality check passes, the step of authenticating the requesting user ID according to the permission group collaborator ID is triggered to execute; The verification information includes a signature of the first application or a digital certificate of the first application.
12. The method according to claim 9, characterized in that The method further comprises: Sending a permission user group creation request to the first application, wherein the permission user group creation request carries a document identifier of the document and an identifier of the second application; receiving a permission group collaborator identifier sent by the first application, where the permission group collaborator identifier is allocated by the first application according to the permission user group creation request; Creating the permission user group according to the permission group collaborator identifier; One or more authorized user identifiers are added to the authorized user group, and at least one operation permission is configured for any authorized user identifier in the authorized user group.
13. The method according to claim 9, characterized in that The method further comprises: receiving a permission application request sent by the first application, wherein the permission application request is sent by the first application when the authentication result is an authentication failure, and the permission application request includes the requesting user identifier; In response to the permission application request, the requesting user identifier is added to the authorized user group, and at least one operation permission is configured for the requesting user identifier.
14. A document processing device, characterized in that: The document processing device comprises: an acquisition unit, configured to acquire, when receiving an operation request initiated for a document in a first application, a permission group collaborator identifier of the document, the permission group collaborator identifier being used to represent a permission user group having permission to operate the document, the permission group collaborator identifier being allocated by the first application to a second application, the second application creating and managing the permission user group according to the allocated permission group collaborator identifier; the second application being an application connected to the first application and different from the first application; A sending unit, configured to send a permission authentication request to the second application, wherein the permission authentication request carries a requesting user identifier of the document, and the permission authentication request is used to trigger the second application to authenticate the requesting user identifier according to the permission group collaborator identifier and return an authentication result; A processing unit is used to output a response page of the operation request according to the authentication result.
15. A document processing device, characterized in that: The document processing device comprises: A receiving unit, configured to receive a permission authentication request sent by a first application, wherein the permission authentication request carries a requesting user identifier of a document; wherein, upon receiving an operation request initiated for the document in the first application, the first application obtains a permission group collaborator identifier of the document; the permission group collaborator identifier is used to represent a permission user group having the permission to operate the document, the permission group collaborator identifier is allocated by the first application to the second application, and the second application creates and manages the permission user group according to the allocated permission group collaborator identifier; the second application is an application that is connected to the first application and is different from the first application; A processing unit, configured to authenticate the requesting user identifier according to the permission group collaborator identifier; A sending unit is used to return the authentication result to the first application.
16. A document processing device, characterized in that: The document processing device comprises: a processor adapted to implement a computer program; and, A computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by the processor and executing the document processing method as described in any one of claims 1 to 8, or the document processing method as described in any one of claims 9 to 13.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and the computer program is suitable for being loaded by a processor and executing the document processing method according to any one of claims 1 to 8, or the document processing method according to any one of claims 9 to 13.
18. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed by a processor, the document processing method according to any one of claims 1 to 8 or the document processing method according to any one of claims 9 to 13 is implemented.
