Service authorization method and device, storage medium and electronic device

By transmitting authorization information and parameters between the first and second applications and integrating the authorization process using the device control server, the problem of low business authorization efficiency is solved, achieving efficient device control and cost savings.

CN115694900BActive Publication Date: 2025-08-26HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211182957.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2025-08-26
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

In existing technologies, business authorization is inefficient and the authorization process is extremely costly in terms of human resources. There is a lack of mature APP to APP authorization solutions, which leads to project delays and increased human resource costs.

Method used

By transmitting authorization information and parameters between the first and second applications, the authorization process is integrated using the device control server, including obtaining authorization information, verifying authorization progress, and binding the device control process, providing control capabilities on the device control interface.

Benefits of technology

It improves the efficiency of business authorization, reduces the consumption of human resources, provides a clear two-way authorization process, saves overall development costs, and simplifies the authorization process for third-party apps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115694900B_ABST
    Figure CN115694900B_ABST
Patent Text Reader

Abstract

The present application discloses a service authorization method and device, a storage medium and an electronic device, relating to the field of smart home technology. The service authorization method includes: when a first application initiates a first request to a second application, obtaining first authorization information received by the first application and fed back by the second application in response to the first request, and determining parameter information to be used when the second application integrates the first application; packaging the first authorization information and the parameter information and sending them to the second application, obtaining second authorization information fed back again by the second application; sending a second request to a device control server corresponding to the first application based on the second authorization information; and when it is determined that third authorization information fed back by the device control server in response to the second request is obtained, authorizing the second application to use the device control process in the first application, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to a service authorization method and device, a storage medium, and an electronic device. Background Art

[0002] As businesses grow, individual apps corresponding to different companies need to authorize with an increasing number of third-party apps to meet the needs of users in different regions and for different groups of users. For example, in a certain foreign market, a robot vacuum cleaner's primary sales channel is Amazon, requiring WWA certification. Amazon has added a new authorization login requirement to the WWA certification, requiring app-to-app authorization on the app side. Only after passing the certification can the robot vacuum cleaner be released to the market. As a result, as business expands, more and more third-party apps will inevitably require authorization services. However, there is no mature and systematic authorization solution in the app sector, nor a comprehensive app-to-app authorization solution to refer to. As a result, when third-party apps are involved in authorization or other departments and developers are involved, it is difficult to quickly understand the overall process and accurately identify problems. Consequently, different project participants need to spend time understanding and inquiring about the overall business. Therefore, authorization requires adapting different third-party apps separately, which consumes a lot of time and manpower, causing project delays and preventing relevant personnel from quickly identifying online problems, greatly reducing authorization efficiency.

[0003] There is no effective solution yet for the problems of low efficiency of business authorization and serious human resource consumption in the authorization process in related technologies. Summary of the Invention

[0004] The embodiments of the present application provide a service authorization method and device, a storage medium, and an electronic device to at least solve the problems of low efficiency of service authorization and serious human resource consumption in the authorization process in related technologies.

[0005] According to an embodiment of the present application, a service authorization method is provided, including: when a first application initiates a first request to a second application, obtaining first authorization information received by the first application and fed back by the second application in response to the first request, and determining parameter information to be used when the second application integrates the first application; packaging the first authorization information and the parameter information and sending them to the second application, obtaining second authorization information re-fed back by the second application; sending a second request to the device control server corresponding to the first application based on the second authorization information; and authorizing the second application to use the device control process in the first application when determining that third authorization information fed back by the device control server in response to the second request is obtained, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

[0006] In an exemplary embodiment, when it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, authorizing the second application to use the device control process in the first application includes: sending a first indication message to the second application, wherein the first indication message is used to instruct the second application to obtain the registered domain name of the target object currently using the second application; and using the registered domain name to authorize the second application to use the device control process in the first application.

[0007] In an exemplary embodiment, after determining that the third authorization information fed back by the device control server in response to the second request is obtained, and authorizing the second application to use the device control process in the first application, the above method further includes: obtaining the authorization progress of the second application; when the authorization progress indicates that the second application has completed the authorization process, instructing the second application to perform authorization callback verification.

[0008] In an exemplary embodiment, instructing the second application to perform callback verification of authorization authentication includes: sending a second indication message to the second application for verifying the authorization result corresponding to the authorization process; wherein the second indication message is used to instruct the second application to synchronize fourth authorization information from the device control server after activating the device control process for the first application; when the fourth authorization information is the same as the third authorization information, determining that the authorization process is valid; when the fourth authorization information is different from the third authorization information, determining that the authorization process is invalid.

[0009] In an exemplary embodiment, the above method also includes: when the authorization process is valid, sending an authorization success prompt to the target object currently using the second application, wherein the authorization success prompt is used to prompt the target object to allow the execution of the device control process corresponding to the first application through the second application; when the authorization process is invalid, sending an authorization failure prompt to the target object currently using the second application, wherein the authorization failure prompt is used to prompt the target object to use the first application to execute the corresponding device control process.

[0010] In an exemplary embodiment, after determining that the third authorization information fed back by the device control server in response to the second request is obtained, and authorizing the second application to use the device control process in the first application, the above method also includes: correspondingly binding the first application and the second application to generate authorization information corresponding to the server; when there is a change in the device bound to the first application in the authorization information or a change in the device control process, directly updating the authorization of the second business of the device control process in the first application based on the authorization information.

[0011] In an exemplary embodiment, the above method also includes: determining a preset update cycle of the target object; when the update cycle is reached, controlling the second application to send an update instruction to the first application, wherein the update instruction is used to instruct the first application to actively initiate a first request to the second application.

[0012] According to another embodiment of the embodiments of the present application, a service authorization device is also provided, including: a first acquisition module, which is used to obtain, when a first application initiates a first request to a second application, first authorization information fed back by the second application in response to the first request, and determine parameter information to be used when the second application integrates the first application; a second acquisition module, which is used to package the first authorization information and the parameter information and send them to the second application, and obtain second authorization information fed back again by the second application; a sending module, which is used to send a second request to the device control server corresponding to the first application based on the second authorization information; and an authorization module, which is used to authorize the second application to use the device control process in the first application when it is determined that the third authorization information fed back by the device control server in response to the second request has been obtained, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

[0013] In an exemplary embodiment, the above-mentioned authorization module is also used to send a first indication message to the second application, wherein the first indication message is used to instruct the second application to obtain the registered domain name of the target object currently using the second application; and use the registered domain name to authorize the second application to use the device control process in the first application.

[0014] In an exemplary embodiment, the apparatus further includes: a verification module configured to obtain the authorization progress of the second application; and instruct the second application to perform authorization callback verification if the authorization progress indicates that the second application has completed the authorization process.

[0015] In an exemplary embodiment, the above-mentioned verification module is also used to send a second indication message to the second application for verifying the authorization result corresponding to the authorization process; wherein, the second indication message is used to instruct the second application to synchronize fourth authorization information from the device control server after activating the device control process of the first application; when the fourth authorization information is the same as the third authorization information, the authorization process is determined to be valid; when the fourth authorization information is different from the third authorization information, the authorization process is determined to be invalid.

[0016] In an exemplary embodiment, the above-mentioned verification module also includes: a prompt unit, which is used to send an authorization success prompt to the target object currently using the second application when the authorization process is valid, wherein the authorization success prompt is used to prompt the target object to allow the execution of the device control process corresponding to the first application through the second application; if the authorization process is invalid, send an authorization failure prompt to the target object currently using the second application, wherein the authorization failure prompt is used to prompt the target object to use the first application to execute the corresponding device control process.

[0017] In an exemplary embodiment, the above-mentioned device also includes: a binding module, which is used to bind the first application and the second application accordingly and generate authorization information corresponding to the server; when there is a change in the device bound to the first application in the authorization information or there is a change in the device control process, the second business of the device control process in the first application is directly authorized and updated based on the authorization information.

[0018] In an exemplary embodiment, the above-mentioned device also includes: an update module, used to determine the preset update cycle of the target object; when the update cycle is reached, controlling the second application to send an update instruction to the first application, wherein the update instruction is used to instruct the first application to actively initiate a first request to the second application.

[0019] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned service authorization method when running.

[0020] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the service authorization method through the computer program.

[0021] In an embodiment of the present application, when a first application initiates a first request to a second application, the first application obtains first authorization information fed back by the second application in response to the first request, and determines parameter information to be used when the second application integrates the first application; the first authorization information and the parameter information are packaged and sent to the second application, and second authorization information fed back by the second application is obtained; a second request is sent to the device control server corresponding to the first application based on the second authorization information; when it is determined that third authorization information fed back by the device control server in response to the second request is obtained, the second application is authorized to use the device control process in the first application, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application; the above technical solution solves the problems of low efficiency of business authorization and serious human resource consumption in the authorization process. By integrating the business authorization process, the embodiment of the present invention makes it possible to clearly understand the two-way authorization process of different applications, provide a feasible solution for the authorization of other three-party apps, save time costs for the overall development process, reduce the cost of coordinated development of various businesses, provide a feasible solution for authorization of other business lines or third-party access, facilitate developers to understand the authorization organization process and operation method, and improve work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0024] Figure 1 This is a schematic diagram of the hardware environment of a service authorization method according to an embodiment of the present application;

[0025] Figure 2 is a flowchart of a service authorization method according to an embodiment of the present application;

[0026] Figure 3 is a schematic diagram of a service authorization method according to an optional embodiment of the present application;

[0027] Figure 4 This is a structural block diagram of a service authorization device according to an embodiment of the present application (I);

[0028] Figure 5 This is a structural block diagram (II) of a service authorization device according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] According to one aspect of the embodiment of the present application, a service authorization method is provided. The service authorization method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart home (IntelligenceHouse) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above service authorization method can be applied to Figure 1 In the hardware environment shown in FIG. 1 , which is composed of a terminal device 102 and a server 104. Figure 1As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0032] The aforementioned network may include, but is not limited to, at least one of the following: a wired network and a wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: a wide area network, a metropolitan area network, and a local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity) and Bluetooth. The terminal device 102 may be, but is not limited to, a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing machine, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, smart curtains, smart audio and video, a smart socket, a smart speaker, a smart fresh air device, smart kitchen and bathroom equipment, smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purifier, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0033] In this embodiment, a service authorization method is provided, which is applied to a computer terminal. Figure 2 : is a flowchart of a service authorization method according to an embodiment of the present application, which includes the following steps:

[0034] Step S202: When a first application initiates a first request to a second application, obtaining first authorization information fed back by the second application in response to the first request and received by the first application, and determining parameter information to be used when the second application integrates the first application;

[0035] It should be noted that the above-mentioned second application is an application to be integrated with the business functions of the first application, so that after the integration, the intention to operate the relevant functions of the first application can be realized in the second application. Optionally, the above-mentioned two applications can be bidirectionally authorized, and the embodiment of the present invention does not limit this.

[0036] Step S204: Pack the first authorization information and the parameter information and send them to the second application, and obtain the second authorization information fed back by the second application;

[0037] Step S206: Send a second request to the device control server corresponding to the first application based on the second authorization information;

[0038] Step S208, when it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, authorize the second application to use the device control process in the first application, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

[0039] Optionally, the device control server may also be an Internet of Things.

[0040] Through the above steps, when a first application initiates a first request to a second application, the first application obtains first authorization information fed back by the second application in response to the first request, and determines parameter information to be used when the second application integrates the first application. The first authorization information and parameter information are packaged and sent to the second application, and second authorization information fed back by the second application is obtained. Based on the second authorization information, a second request is sent to the device control server corresponding to the first application. When it is determined that third authorization information fed back by the device control server in response to the second request is obtained, the second application is authorized to use the device control process in the first application, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application. The above technical solution solves the problems of low efficiency of service authorization and serious human resource consumption in the authorization process. By integrating the service authorization process, the embodiment of the present invention makes it possible to clearly understand the two-way authorization process of different applications, providing a feasible solution for the authorization of other three-party apps, saving time and cost for the overall development process, reducing the cost of coordinated development of various services, and providing a feasible solution for authorization of other business lines or third-party access, facilitating developers' understanding of the authorization organization process and operation method, thereby improving work efficiency.

[0041] In an embodiment of the present invention, the above-mentioned step S208 can be implemented in multiple ways. In an optional embodiment, it can be implemented in the following way: sending a first indication message to the second application, wherein the first indication message is used to instruct the second application to obtain the registered domain name of the target object currently using the second application; using the registered domain name to authorize the second application to use the device control process in the first application.

[0042] That is, by determining the registered region name of the target object using the second application, the business demand characteristics of the target object currently using the second application are determined. In other words, the regional characteristics of the target object currently using the second application can be identified through the registered region name, so that when the second application is authorized to use the device control process in the first application, the use of the authorized control business is adjusted according to the regional characteristics, ensuring the best experience of the target object using the device control process after authorization.

[0043] In an exemplary embodiment, after determining that the third authorization information fed back by the device control server in response to the second request is obtained, and authorizing the second application to use the device control process in the first application, the above method further includes: obtaining the authorization progress of the second application; when the authorization progress indicates that the second application has completed the authorization process, instructing the second application to perform authorization callback verification.

[0044] It is understandable that after determining that the second application is authorized to use the device control process in the first application, in order to ensure the accuracy of the authorization result, it is also possible to track the stage at which the second application has different business functions in the first application, and monitor the authorization progress of different control services corresponding to the first application in the second application in real time. When the second application has completed the authorization process for the first application, callback verification is used to ensure the application of different control services in the first application in the second application.

[0045] In an exemplary embodiment, instructing the second application to perform callback verification of authorization authentication includes: sending a second indication message to the second application for verifying the authorization result corresponding to the authorization process; wherein the second indication message is used to instruct the second application to synchronize fourth authorization information from the device control server after activating the device control process for the first application; when the fourth authorization information is the same as the third authorization information, determining that the authorization process is valid; when the fourth authorization information is different from the third authorization information, determining that the authorization process is invalid.

[0046] In an exemplary embodiment, the above method also includes: when the authorization process is valid, sending an authorization success prompt to the target object currently using the second application, wherein the authorization success prompt is used to prompt the target object to allow the execution of the device control process corresponding to the first application through the second application; when the authorization process is invalid, sending an authorization failure prompt to the target object currently using the second application, wherein the authorization failure prompt is used to prompt the target object to use the first application to execute the corresponding device control process.

[0047] In short, by determining the validity of the authorization process and sending corresponding prompt information to the target object, the target object can accurately know the current control effect when using the second application to implement the device control process in the first application, and adjust the control application for different devices.

[0048] In an exemplary embodiment, after determining that the third authorization information fed back by the device control server in response to the second request is obtained, and authorizing the second application to use the device control process in the first application, the above method also includes: correspondingly binding the first application and the second application to generate authorization information corresponding to the server; when there is a change in the device bound to the first application in the authorization information or a change in the device control process, directly updating the authorization of the second business of the device control process in the first application based on the authorization information.

[0049] In an exemplary embodiment, the above method also includes: determining a preset update cycle of the target object; when the update cycle is reached, controlling the second application to send an update instruction to the first application, wherein the update instruction is used to instruct the first application to actively initiate a first request to the second application.

[0050] In other words, when a new business function or a new controllable device is added to the first application, in order to ensure that the updated control information can be synchronized to the second application in a timely manner, a corresponding update cycle is set for the target object using the second application, so that when the update cycle arrives, the second application can actively instruct the first application to initiate an authorization process, and then update the device control process of the second application.

[0051] In order to better understand the process of the above-mentioned service authorization method, the implementation method flow of the above-mentioned service authorization is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of this application.

[0052] In this embodiment, a business authorization method is provided. By integrating the overall process of Amazon authorization in the APP to APP process, the Amazon app users' desire to operate the relevant functions in the app module is met, and it is convenient to control the corresponding device of the app module in Amazon. Through the integration of the solution, the implementation of this solution is rationalized and coordinated among various business processes. Through the integration of the solution, time costs are saved for the overall development process, the cost of coordinated development of various businesses is reduced, and a reference solution is provided for authorization of other business lines or third-party access, which facilitates developers to understand the authorization organization process and operation methods, thereby improving work efficiency.

[0053] Optional, Figure 3 This is a schematic diagram of a business authorization method according to an optional embodiment of the present application, including: Amazon app, app module, server module, lot module; wherein the server module is the server corresponding to the app module.

[0054] Specifically, such as Figure 3 As shown, the specific steps are as follows:

[0055] Step 1. The app module (equivalent to the first application) initiates a request, logs in to the Amazon app (equivalent to the second application), and obtains an authorization code;

[0056] Step 2. The Amazon app returns authorization data (i.e., authorization code);

[0057] Step 3. The app module parses the authorization data, obtains the code, and sends a request to the server module with the authorization code.

[0058] Step 4. The server obtains the authorization token with the authorization code and configured clientId, clientSecret and other parameters;

[0059] Step 5. The Amazon app returns authorization information.

[0060] Step 6. The server module parses the returned parameters and obtains token and refreshToken;

[0061] Step 7. The server module sends a request to the lot module with the app user login information to obtain the authorization code;

[0062] Step 8.lot returns authorization information;

[0063] Step 9. The server module uses the Amazon token to obtain the registered domain name of the Amazon logged-in user;

[0064] Step 10. Amazon returns the user's registered region domain name;

[0065] Step 11. The server parses the data to obtain the registered domain name and requests Amazon to activate the skill.

[0066] Step 12. Amazon successfully launches the skill and calls back lot to synchronize authorization information.

[0067] Through the above embodiments, the integration of the solutions enables everyone to have a clearer understanding of the two-way authorization process, provides a feasible solution for other third-party app authorization, and can also be used for apps to handle third-party authorization requests; each business line should consider user data security issues, reasonably plan the processing processes of each department, and also provide Amazon authorization solutions for future access reference; further, with the development of the market, business expansion in different regions and countries around the world has gradually begun. With the expansion of more and more markets, there will be more users and wider channels to authorize and interact with a certain app and other businesses. This solution integrates the overall process of Amazon authorization in the APP to APP process, and facilitates the control of the corresponding device of the APP module in Amazon. Through the integration of the solutions, the implementation of this solution is rationalized and coordinated among various business processes, saving time and cost for the overall development process, reducing the cost of coordinated development of various businesses, and providing a feasible solution for authorization of other business lines or third-party access, facilitating developers to understand the authorization organization process and operation methods, and improving work efficiency.

[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0069] Figure 4 1 is a structural block diagram of a service authorization device according to an embodiment of the present application (I); Figure 4 Shown, including:

[0070] A first obtaining module 42 is configured to obtain, when a first application initiates a first request to a second application, first authorization information fed back by the second application in response to the first request and received by the first application, and determine parameter information to be used when the second application integrates the first application;

[0071] A second obtaining module 44 is configured to package the first authorization information and the parameter information and send them to the second application, and obtain second authorization information fed back by the second application;

[0072] A sending module 46, configured to send a second request to a device control server corresponding to the first application based on the second authorization information;

[0073] The authorization module 48 is used to authorize the second application to use the device control process in the first application when it is determined that the third authorization information fed back by the device control server in response to the second request has been obtained, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

[0074] The apparatus, when a first application initiates a first request to a second application, obtains first authorization information received by the second application in response to the first request, and determines parameter information to be used by the second application when integrating with the first application. The apparatus packages the first authorization information and the parameter information and sends them to the second application, obtaining second authorization information re-feedback by the second application. A second request is sent to the device control server corresponding to the first application based on the second authorization information. Upon determining that third authorization information fed back by the device control server in response to the second request is obtained, the apparatus authorizes the second application to use the device control process in the first application, wherein the device control process is used to control the device bound to the first application on a display interface corresponding to the second application. The above technical solution solves the problems of inefficient service authorization and severe human resource consumption in the authorization process. The embodiment of the present invention integrates the service authorization process, making it possible to clearly understand the bidirectional authorization process for different applications, providing a feasible solution for the authorization of other third-party apps, saving time and cost for the overall development process, reducing the cost of coordinated development of various services, and providing a feasible solution for authorization of other business lines or third-party access, facilitating developers' understanding of the authorization process and operation methods, thereby improving work efficiency.

[0075] In an exemplary embodiment, the above-mentioned authorization module is also used to send a first indication message to the second application, wherein the first indication message is used to instruct the second application to obtain the registered domain name of the target object currently using the second application; and use the registered domain name to authorize the second application to use the device control process in the first application.

[0076] Optional, Figure 5 This is a structural block diagram of a service authorization device according to an embodiment of the present application (II); Figure 5 As shown, it includes not only Figure 4 All modules in the embodiment further include: a verification module 52; a binding module 54; an update module 56;

[0077] In an exemplary embodiment, the apparatus further includes: a verification module configured to obtain the authorization progress of the second application; and instruct the second application to perform authorization callback verification if the authorization progress indicates that the second application has completed the authorization process.

[0078] In an exemplary embodiment, the above-mentioned verification module is also used to send a second indication message to the second application for verifying the authorization result corresponding to the authorization process; wherein, the second indication message is used to instruct the second application to synchronize fourth authorization information from the device control server after activating the device control process of the first application; when the fourth authorization information is the same as the third authorization information, the authorization process is determined to be valid; when the fourth authorization information is different from the third authorization information, the authorization process is determined to be invalid.

[0079] In an exemplary embodiment, the above-mentioned verification module also includes: a prompt unit, which is used to send an authorization success prompt to the target object currently using the second application when the authorization process is valid, wherein the authorization success prompt is used to prompt the target object to allow the execution of the device control process corresponding to the first application through the second application; if the authorization process is invalid, send an authorization failure prompt to the target object currently using the second application, wherein the authorization failure prompt is used to prompt the target object to use the first application to execute the corresponding device control process.

[0080] In an exemplary embodiment, the above-mentioned device also includes: a binding module, which is used to bind the first application and the second application accordingly and generate authorization information corresponding to the server; when there is a change in the device bound to the first application in the authorization information or there is a change in the device control process, the second business of the device control process in the first application is directly authorized and updated based on the authorization information.

[0081] In an exemplary embodiment, the above-mentioned device also includes: an update module, used to determine the preset update cycle of the target object; when the update cycle is reached, controlling the second application to send an update instruction to the first application, wherein the update instruction is used to instruct the first application to actively initiate a first request to the second application.

[0082] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0083] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0084] S1, when a first application initiates a first request to a second application, obtaining first authorization information fed back by the second application in response to the first request and received by the first application, and determining parameter information to be used when the second application integrates the first application;

[0085] S2: Pack the first authorization information and the parameter information and send them to the second application, and obtain the second authorization information fed back by the second application;

[0086] S3. Send a second request to the device control server corresponding to the first application based on the second authorization information; S4. Authorize the second application to use the device control process in the first application when it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

[0087] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0088] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0089] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0090] S1, when a first application initiates a first request to a second application, obtaining first authorization information fed back by the second application in response to the first request and received by the first application, and determining parameter information to be used when the second application integrates the first application;

[0091] S2: Pack the first authorization information and the parameter information and send them to the second application, and obtain the second authorization information fed back by the second application;

[0092] S3. Send a second request to the device control server corresponding to the first application based on the second authorization information; S4. Authorize the second application to use the device control process in the first application when it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

[0093] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0094] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0095] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. Alternatively, they can be implemented using program code executable by the computing device, so that they can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than herein, or they can be made into separate integrated circuit modules, or multiple modules or steps can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0096] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A service authorization method, characterized in that: include: When a first application initiates a first request to a second application, obtaining first authorization information fed back by the second application in response to the first request and received by the first application, and determining parameter information to be used when the second application integrates the first application; Packing the first authorization information and the parameter information and sending them to the second application, and obtaining the second authorization information fed back by the second application; Sending a second request to the device control server corresponding to the first application based on the second authorization information; When it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, the second application is authorized to use the device control process in the first application, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

2. The service authorization method according to claim 1, characterized in that: In a case where it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, authorizing the second application to use the device control process in the first application includes: Sending first indication information to the second application, wherein the first indication information is used to instruct the second application to obtain the registered domain name of the target object currently using the second application; The registered domain name is used to authorize the second application to use the device control process in the first application.

3. The service authorization method according to claim 1, characterized in that: When it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, after authorizing the second application to use the device control process in the first application, the method further includes: Obtaining the authorization progress of the second application; When the authorization progress indicates that the second application has completed the authorization process, the second application is instructed to perform callback verification of the authorization.

4. The service authorization method according to claim 3, characterized in that: Instructing the second application to perform callback verification for authorization authentication, including: Sending second instruction information for verifying the authorization result corresponding to the authorization process to the second application; wherein the second instruction information is used to instruct the second application to synchronize fourth authorization information from the device control server after activating the device control process for the first application; In a case where the fourth authorization information is identical to the third authorization information, determining that the authorization process is valid; In a case where the fourth authorization information is different from the third authorization information, it is determined that the authorization process is invalid.

5. The service authorization method according to claim 4, characterized in that: The method further comprises: If the authorization process is valid, sending an authorization success prompt to the target object currently using the second application, wherein the authorization success prompt is used to prompt the target object to allow the device control process corresponding to the first application to be executed through the second application; In the case that the authorization process is invalid, an authorization failure prompt is sent to the target object currently using the second application, wherein the authorization failure prompt is used to prompt the target object to use the first application to execute the corresponding device control process.

6. The service authorization method according to claim 1, characterized in that: When it is determined that the third authorization information fed back by the device control server in response to the second request is obtained, after authorizing the second application to use the device control process in the first application, the method further includes: Binding the first application to the second application to generate authorization information corresponding to the server; When there is a change in the device bound to the first application in the authorization information or a change in the device control process, the second service authorizing the device control process in the first application is directly updated based on the authorization information.

7. The service authorization method according to claim 1, characterized in that: The method further comprises: Determine the preset update cycle of the target object; When the update period arrives, the second application is controlled to send an update instruction to the first application, wherein the update instruction is used to instruct the first application to actively initiate a first request to the second application.

8. A service authorization device, characterized in that: include: A first acquisition module is configured to, when a first application initiates a first request to a second application, acquire first authorization information fed back by the second application in response to the first request and received by the first application, and determine parameter information to be used when the second application integrates the first application; A second obtaining module is configured to package the first authorization information and the parameter information and send them to the second application, and obtain second authorization information fed back by the second application; a sending module, configured to send a second request to a device control server corresponding to the first application based on the second authorization information; An authorization module is used to authorize the second application to use the device control process in the first application when it is determined that the third authorization information fed back by the device control server in response to the second request has been obtained, wherein the device control process is used to control the device bound to the first application on the display interface corresponding to the second application.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • User information acquisition method and related equipment

    CN111405016A

  • Equipment control method and equipment, storage medium and electronic equipment

    CN113438314A