User login-free authorization interaction method for third-party account authorization of smart home
By obtaining the unique code of the third-party account and generating a smart home platform account, the smart home intermediate service is used to realize the authorized interaction between the smart home client and the voice platform, which solves the problem of low authorization interaction efficiency when logging in with a third-party account and improves the user experience. And ensures the security and flexibility of the authorization process.
Patent Information
- Application Number
- CN202410877814.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-08-30
AI Technical Summary
When using a third-party account to log in to the smart home App, the authorization interaction efficiency is low and the user experience is poor. You need to log in again with the account password to complete the account authorization with the voice platform.
By obtaining the unique code of the third-party account currently logged in by the smart home client, the smart home platform account is generated and bound, and the smart home intermediate service is used to realize the authorized interaction between the smart home client and the voice platform, thus avoiding interference with the third-party account system. Dependence, supporting the integration of independent third-party user account systems and smart home platforms.
It improves the efficiency of authorization interaction and enhances the user experience. Authorization interaction can be completed without logging in again with the account and password, ensuring the security of the authorization process and the flexibility of device management.
Smart Images

Figure CN118573501A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of authorization interaction, and in particular to an authorization interaction method for smart home third-party account authorization without user login. Background Art
[0002] Smart home devices refer to household appliances and devices connected to the Internet, which have automated control and remote control functions. These devices include smart lamps, smart sockets, smart cameras, smart door locks, etc., which can be remotely monitored and operated through control terminals such as smartphones, tablets or voice speakers. Through smart home devices, users can realize functions such as home security monitoring, energy-saving management, and environmental control, which greatly improves the comfort and convenience of home life. Voice speakers are an important form of smart home devices. Through built-in voice recognition and artificial intelligence technology, it enables users to control smart home devices through voice commands. Voice speakers can not only perform home control tasks, but also provide a variety of functions such as music playback, weather query, schedule reminders, and question-and-answer services.
[0003] When users use voice skill services to control smart home products, two types of accounts are generally involved: one is the smart home platform account, and the other is the voice platform account. Under normal circumstances, these two types of accounts can complete the binding between account services through the security standard of OAuth2.0, and share user application data. However, there are business scenarios where a third party entrusts the smart home platform to develop voice skills, which involves the relationship processing of the three-party accounts. The existing technology is basically based on the account authorization binding of the two accounts, the smart home platform account and the voice platform account. If there is a third-party account logged in to the smart home app, then when the third-party account is in the smart home app login authorization state and the smart home app is bound to the voice platform for authorization, the voice platform needs to interact with the user account system in the logged-in state to obtain the authorization binding of the user account and the voice platform account to perform voice control of the device.
[0004] In the binding authorization process of the user account, the currently known method requires the third-party account system to develop functions to support data interaction with the voice platform account. Because the third-party account itself logs in to the smart home app through OAuth authorization, the smart home app only saves the user token after the login authorization is successful, and does not save the third-party account and password. The login authorization of the voice platform and the third-party account is relatively independent, and is generally implemented based on OAuth2.0. When the original smart home user account directly logs in to the smart home app, because the original smart home account is the account system of the smart home platform, it is convenient to directly support the authorization interaction process between the user credentials of the original account logging in to the smart home app and the voice platform account. When using a third-party account to log in to the smart home app, since the smart home app does not save the third-party account and password, when it is necessary to interact with the voice platform account for authorization, it is necessary to re-login the account password to complete the account authorization problem with the voice platform, which has low interaction efficiency and poor user experience. Summary of the invention
[0005] In view of this, the present invention provides a smart home third-party account authorization interaction method without user login, so as to solve the technical problems of low authorization interaction efficiency and poor user experience when using a third-party account to log in to the smart home App.
[0006] In a first aspect, the present invention provides an authorization interaction method for a smart home third-party account without user login, comprising: obtaining a unique code of a third-party account currently logged in by a smart home client and generating a smart home platform account bound to the unique code of the third-party account; when the third-party account is associated with a smart home device, the bound smart home platform account is synchronously associated with the smart home device; through a smart home intermediate service, the authorization interaction between the smart home client and the voice platform is realized based on the bound smart home platform account.
[0007] The method for authorizing and interacting with a third-party account of a smart home without user login of the present invention obtains the unique code of the third-party account currently logged in by the smart home client and generates a smart home platform account bound to the unique code of the third-party account. When the third-party account is associated with the smart home device, the bound smart home platform account is synchronously associated with the smart home device. Through the smart home intermediate service, the authorization interaction between the smart home client and the voice platform is realized based on the bound smart home platform account. The smart home intermediate service takes over the third party to realize the authorization service based on the bound smart home platform account, so that the smart home App does not need to use the third-party account system, does not need the third party to develop the account authorization interaction service with the voice platform, supports the integration of the independent third-party user account system and the smart home platform, facilitates the smart home platform to empower the third-party demander, retains the authorization process that does not require an account and password, improves the efficiency of authorization interaction, and enhances the user experience.
[0008] Optionally, through the smart home intermediate service, authorized interaction between the smart home client and the voice platform is realized based on the bound smart home platform account, including: initiating an operation request for the associated smart home device based on the client user token; calling the third-party account service to verify whether the client user token is valid, and if so, generating and returning a smart home intermediate service authorization code; receiving an access token acquisition request sent by the voice platform, and the access token acquisition request carries the smart home intermediate service authorization code; judging whether the smart home intermediate service authorization code is valid through the smart home intermediate service, and if so, generating a smart home platform user token corresponding to the bound smart home platform account and returning the smart home platform user token to the voice platform; through the voice platform, using the smart home platform user token to control the associated smart home device to perform corresponding operations.
[0009] In this method, the third-party account service only needs to verify the validity of the client user token, and the subsequent authorization process is taken over by the smart home intermediate service. The authorization interaction can be completed without logging in to the account and password again, which is easy to use.
[0010] Optionally, through the voice platform, the smart home platform user token is used to control the associated smart home devices to perform corresponding operations, including: using the smart home platform user token to send a request to the voice skill service through the voice platform; judging whether the smart home platform user token is valid through the voice skill service, and when the smart home platform user token is valid, obtaining the unique code of the third-party account bound to the smart home platform account corresponding to the smart home platform user token, obtaining the smart home devices associated with the smart home platform account according to the unique code of the bound third-party account and performing corresponding operations on the smart home devices.
[0011] In this method, the smart home devices associated with the smart home platform account are obtained through the unique code of the third-party account, so that the user can control the smart home devices through voice commands.
[0012] Optionally, determining whether the smart home platform user token is valid through the voice skill service includes: receiving a verification request carrying the smart home platform user token sent by the voice skill service; determining whether the smart home platform user token carried in the verification request is valid through the smart home intermediate service and returning the determination result to the voice skill service.
[0013] In this way, the smart home platform user token is verified by the smart home intermediate service, which ensures the security of authorized interaction and prevents unauthorized device control operations.
[0014] Optionally, the unique code of the third-party account currently logged in by the smart home client is obtained and a smart home platform account bound to the unique code of the third-party account is generated, including: obtaining the unique code of the third-party account currently logged in by the smart home client and determining whether the third-party account is logging in to the smart home client for the first time; if it is the first time logging in to the smart home client, generating a smart home platform account bound to the unique code of the third-party account.
[0015] In this method, for a third-party account logging in for the first time, a smart home platform account is generated to provide account support for the subsequent takeover authorization process.
[0016] Optionally, when a third-party account is associated with a smart home device, the bound smart home platform account is synchronously associated with the smart home device, including: receiving association information of the third-party account associated with the smart home device in the smart home client; based on the association information, adding or deleting associated devices for the smart home platform account bound to the third-party account.
[0017] In this way, adding or deleting associated devices for the smart home platform account bound to the third-party account provides flexibility in device management, allowing users to adjust the configuration of their smart home devices as needed.
[0018] In a second aspect, the present invention provides an authorization interaction device for a smart home third-party account that authorizes user login without the need for user login, comprising: an account generation module, used to obtain a unique code of a third-party account currently logged in by a smart home client and generate a smart home platform account bound to the unique code of the third-party account; a device association module, used to synchronously associate the bound smart home platform account with the smart home device when the third-party account is associated with the smart home device; an authorization takeover module, used to realize the authorization interaction between the smart home client and the voice platform based on the bound smart home platform account through a smart home intermediate service.
[0019] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the authorization interaction method for smart home third-party account authorization without user login of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0020] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the authorization interaction method for smart home third-party account authorization without user login of the above-mentioned first aspect or any corresponding embodiment thereof.
[0021] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the authorization interaction method for smart home third-party account authorization without user login as in the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a flowchart of a smart home third-party account authorization interaction method without user login according to an embodiment of the present invention;
[0024] Figure 2 It is a structural block diagram of an authorization interaction device for smart home third-party account authorization without user login according to an embodiment of the present invention;
[0025] Figure 3 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0027] Some of the terms involved in the embodiments of the present invention are explained as follows:
[0028] Third Party: generally refers to a third-party B-side customer or company partner.
[0029] Third-party account service: For smart home app terminal users, it uses the third party's own account and integrates into the third-party service system to provide authorization services to smart home apps for user login authorization, and provides interfaces for smart home platforms to call to verify and obtain authorization information and user information.
[0030] Smart home intermediate service: a set of background programs for third-party account services and smart home accounts and services, which includes an authorization service based on the OAuth2.0 standard of the third-party account system. The authorization service takes over the request processing for direct access to the third-party account service.
[0031] Voice skills: specifically refers to smart home voice skills, which refers to the ability or function to interact with smart home devices using voice technology. This skill enables users to control various smart home devices, such as smart lamps, smart sockets, smart appliances, smart security systems, etc., through voice commands. With smart home voice skills, users can control and manage their home environment through simple voice commands, such as turning on / off lights, adjusting temperature, playing music, setting alarms, etc. This skill usually relies on speech recognition, natural language understanding, and the connection and control technology of smart home devices.
[0032] Voice platform: a service platform that provides voice analysis and control protocols, generally providing voice speakers, voice skill docking protocols, voice skill deployment and release, etc. For example, Amazon Alexa, Google Home, etc.
[0033] Voice platform app: Users log in to the voice platform app using their voice platform account, search for smart home-related voice skills in the voice platform app, bind and authorize the voice skills to the corresponding smart home manufacturer's account, and control the collection of smart devices under the bound smart home account by providing voice functions (generally the carrier of voice interaction is the voice platform's smart speaker or voice assistant app, etc.).
[0034] Smart Home App: refers to an application independently developed and owned by smart home device manufacturers or related service providers, which provides UI for end users to use smart home services and can customize the interface for third parties. These applications are designed for use with specific brands or types of smart home devices to provide users with the ability to manage and control the devices. These applications are usually available on mobile devices such as smartphones and tablets, and connect to smart home devices via the Internet.
[0035] Smart home platform account: The user account manages all the user's smart devices on the smart home platform.
[0036] OAuth 2.0 Standard: OAuth 2.0 is an open standard for authorization that allows users to grant access to their resources to third-party applications without providing their username and password to those applications. It enables users to authorize an application to perform certain actions on their behalf without directly providing their credentials. The core goal of OAuth 2.0 is to securely allow third-party applications to access restricted resources that users store with resource owners.
[0037] Currently, the mechanism that usually allows users to share account information and functions between different applications is the App to App Account Linking mechanism, which allows users to log in through one application and authorize another application to access their account information, thereby achieving cross-application data sharing and function expansion.
[0038] The App to App Account Linking mechanism works through OAuth 2.0. The underlying interaction process is described as follows:
[0039] Step 1. The user installs the smart home app on his mobile device and logs in to the smart home app.
[0040] Step 2. The smart home app provides the user with the option to enable the voice skill and link the user account with the voice platform, and the user confirms the linking request.
[0041] Step 3. What happens next depends on whether the Voice Platform App is installed on the user's device.
[0042] If you have the Voice Platform App installed:
[0043] -Start the Voice Platform App in the Smart Home App using the Voice Platform App URL and authorization request parameters.
[0044] -The Voice Platform App launches and asks the user if they want to link the Voice Platform to the Voice Skill Service.
[0045] - User confirms link request.
[0046] -The Voice Platform App uses the redirect URL to return the user to the Smart Home App and sends the user’s Voice Platform authorization code as part of the redirect URL.
[0047] If the Voice Platform App is not installed:
[0048] -The smart home app uses the voice platform user login authorization URL in the application's built-in browser tab (not the local browser app) and uses the relevant authorization request parameters.
[0049] -The Login Authorization URL launches and asks the user to log in to their Voice Platform account.
[0050] - Login Authorization URL asks the user if they wish to link the Voice Platform to your service.
[0051] - User confirms link request.
[0052] -Login Authorization URL Send the user back to the smart home app using your redirect URL and send the user's voice platform authorization code as part of the redirect URL.
[0053] Step 4. The backend server calls the voice platform login authorization service URL and exchanges the voice platform authorization code retrieved in the previous step for the voice platform access token.
[0054] Step 5. The backend server calls the smart home authorization server to obtain the user's authorization code.
[0055] Step 6. The backend server calls the voice skill activation API using the user's voice platform access token and the user's service authorization code to enable the voice skill and link the account.
[0056] Step 7. The voice platform goes to the access token URL of the smart home app and exchanges the user authorization code of the smart home service for the access token of the smart home service, thus completing the App to App AccountLinking.
[0057] When a smart home app is developed by a third party on behalf of a smart home platform, the third party has its own account service system and wants to use the connection and control technology of smart home devices of the smart home platform to create its own smart home app. In this way, the user account of the smart home app does not directly use the account service system of the smart home platform, but the account service system of the third-party customer. The user account of the smart home app uses and manages smart devices by logging in to a third-party account through OAuth authorization, and the smart devices are directly managed by the account of the smart home platform. In this way, it is necessary to manage third-party accounts and smart home platform accounts, so as to apply them to the interaction between the smart home app and the voice platform. Based on this, an embodiment of the present invention proposes an authorization interaction method for smart home third-party account authorization without user login.
[0058] According to an embodiment of the present invention, an embodiment of an authorization interaction method for smart home third-party account authorization without user login is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0059] In this embodiment, a smart home third-party account authorization interaction method without user login is provided, which can be used in mobile terminals such as mobile phones, tablet computers, etc. Figure 1 As shown, the process includes the following steps:
[0060] Step S101, obtaining a unique code of a third-party account currently logged in by a smart home client and generating a smart home platform account bound to the unique code of the third-party account.
[0061] Specifically, the unique code of the third-party account currently logged in to the smart home client is obtained and it is determined whether the third-party account is logging in to the smart home client for the first time; if it is the first time logging in to the smart home client, a smart home platform account bound to the unique code of the third-party account is generated.
[0062] The user enters the username and password of the third-party account in the mobile terminal to log in through the smart home app. The login page is a URL provided by the third-party account service based on the OAuth open authorization standard. After the user logs in successfully, the third-party account service returns the user's authorization information to the smart home app. The user's authorization information is a string of characters. The user token that replaces the username and password provides us with the credential for accessing user information. We use this credential to call the third-party account service to obtain the third-party account's unique code open_uid. At the same time, the third-party user authorization information is saved in the background service.
[0063] The smart home platform account is used as a hidden background account to directly associate smart home devices for device management. The third-party account is provided to users for use. When the user logs in to the smart home app for the first time using a third-party account, the mobile terminal background program will automatically create a smart home platform account after accepting the request, bind it to the third-party account's unique code open_uid, and store it in the background database. In this way, a smart home platform account is generated for the third-party account that logs in for the first time, providing account support for the subsequent takeover authorization process.
[0064] Step S102, when the third-party account is associated with the smart home device, the bound smart home platform account is synchronously associated with the smart home device.
[0065] Specifically, association information of a third-party account associated with a smart home device in a smart home client is received; based on the association information, associated devices are added or deleted for a smart home platform account bound to the third-party account.
[0066] When the user subsequently logs in to the smart home app, the program will match and search for their relationships to complete the relevant functions of the smart home app, such as adding devices, controlling devices, deleting devices, etc., adding or deleting associated devices for the smart home platform account bound to the third-party account, providing flexibility in device management, allowing users to adjust the configuration of their smart home devices as needed.
[0067] Step S103, through the smart home intermediate service, based on the bound smart home platform account, the smart home client and the voice platform are authorized to interact.
[0068] Specifically, since the smart home platform account is associated with smart home devices, the smart home intermediate service can subsequently take over the authorization interaction between the smart home client and the voice platform and control the associated smart home devices to perform corresponding operations, thereby implementing efficient authorization and voice control.
[0069] The authorization interaction method for smart home third-party account authorization without user login in the embodiment of the present invention obtains the unique code of the third-party account currently logged in by the smart home client and generates a smart home platform account bound to the unique code of the third-party account. When the third-party account is associated with the smart home device, the bound smart home platform account is synchronously associated with the smart home device. Through the smart home intermediate service, the authorization interaction between the smart home client and the voice platform is realized based on the bound smart home platform account. The smart home intermediate service takes over the third party to realize the authorization service based on the bound smart home platform account, so that the smart home App does not need to use the third-party account system, does not need the third party to develop the account authorization interaction service with the voice platform, supports the integration of the independent third-party user account system and the smart home platform, facilitates the smart home platform to empower the third-party demander, retains the authorization process that does not require an account and password, improves the efficiency of authorization interaction, and enhances the user experience.
[0070] Specifically, the steps of the authorization process in the embodiment of the present invention are the same as steps 1 to 4 in the conventional process of App to App Account Linking, except that steps 5 to 7 are taken over by the smart home intermediate service.
[0071] In one embodiment, step S103, through the smart home intermediate service, based on the bound smart home platform account, realizes the authorized interaction between the smart home client and the voice platform, including:
[0072] Step S1031: Initiate an operation request for the associated smart home device based on the client user token.
[0073] The client user token (appauth_token) is a user token authorized by a third-party user account to the smart home app. The smart home app uses appauth_token to send operation requests to the smart home intermediate service platform.
[0074] Step S1032, calling the third-party account service to verify whether the client user token is valid. If valid, a smart home intermediate service authorization code is generated and returned.
[0075] The smart home intermediate service authorization code (auth_code) is an authorization code generated by the smart home intermediate service.
[0076] Specifically, the smart home app sends an operation request carrying appauth_token to the smart home intermediate service to obtain auth_code. The smart home intermediate service uses appauth_token to send a request to the third-party account service to verify the legitimacy of the user token. If it is legal and valid, it generates auth_code and returns it to the smart home app.
[0077] Step S1033: Receive an access token acquisition request sent by the voice platform, where the access token acquisition request carries a smart home intermediate service authorization code.
[0078] Specifically, after receiving the operation request, the voice platform needs to perform authorization interaction first. The voice platform sends an access token acquisition request carrying auth_code to the smart home intermediate service to obtain the smart home platform user token (access_token).
[0079] Step S1034, the smart home intermediate service determines whether the smart home intermediate service authorization code is valid. If valid, a smart home platform user token corresponding to the bound smart home platform account is generated and the smart home platform user token is returned to the voice platform.
[0080] Specifically, the smart home platform user token (access_token) is generated by the smart home intermediate service and authorized to the user token of the voice platform.
[0081] The smart home app calls the smart home intermediate service, and the smart home intermediate service issues a valid access_token after verification and returns it to the voice platform.
[0082] Step S1035, through the voice platform, use the smart home platform user token to control the associated smart home devices to perform corresponding operations.
[0083] Specifically, a request is sent to the voice skill service using the smart home platform user token through the voice platform; the smart home platform user token is determined to be valid through the voice skill service, and when the smart home platform user token is valid, the unique code of the third-party account bound to the smart home platform account corresponding to the smart home platform user token is obtained, and the smart home devices associated with the smart home platform account are obtained according to the unique code of the bound third-party account and corresponding operations are performed on the smart home devices.
[0084] The smart home devices associated with the smart home platform account are obtained through the unique code of the third-party account, allowing users to control the smart home devices through voice commands.
[0085] Furthermore, the smart home platform user token is determined to be valid through the voice skill service, including:
[0086] Receive the verification request carrying the smart home platform user token sent by the voice skill service; determine whether the smart home platform user token carried in the verification request is valid through the smart home intermediate service and return the judgment result to the voice skill service.
[0087] Specifically, the voice skill service sends a request to the mobile terminal with access_token, and the mobile terminal calls the smart home intermediate service to verify the validity of the access_token and returns the judgment result to the voice skill service. The verification of the smart home platform user token by the smart home intermediate service ensures the security of authorized interaction and prevents unauthorized device control operations.
[0088] In an embodiment of the present invention, the access_token management method is as follows:
[0089] The smart home intermediate service provides an API interface to cancel the authorization management of the voice platform for logged-in users, and supports the cancellation of the user's authorized access_token.
[0090] Verification of access_token. Every time a request comes in, if the access_token has been removed by management, it will become invalid. If it has not been removed by management, its validity will be directly verified.
[0091] When access_token is generated, you need to obtain the application authorization token (ap-pauth_token) through the unique code open_uid of the user account that logs in to the smart home app to call the third-party account service to verify whether the appauth_token authorized by the third party to the smart home app is valid. If it is valid, the smart home intermediate service generates an access_token and issues it to the voice platform.
[0092] According to an embodiment of the present invention, the third-party account service only needs to verify the validity of the client user token, and the subsequent authorization process is taken over by the smart home intermediate service. The authorization interaction can be completed without logging in to the account and password again, which is easy to use.
[0093] The authorization interaction method for smart home third-party account authorization without user login in the embodiment of the present invention has the following advantages:
[0094] 1. The smart home App developed using the method of the embodiment of the present invention supports the integration of an independent third-party user account system and a smart home platform, making it easier for the smart home platform to empower third-party B-side customers or partners.
[0095] 2. Only use the third-party account system. There is no need for third parties to develop account authorization interaction services with the voice platform, and retain the authorization process that does not require an account password.
[0096] 3. It solves the problem of users using third-party accounts to log in to the smart home app. They can complete the account authorization with the voice platform without having to re-login their account and password, improving the user experience. The authorization process is the same as the original smart home account.
[0097] The present invention also provides a smart home third-party account authorization interactive device that does not require user login, such as Figure 2 As shown, including:
[0098] An account generation module 201 is used to obtain a unique code of a third-party account currently logged in by a smart home client and generate a smart home platform account bound to the unique code of the third-party account;
[0099] The device association module 202 is used to synchronously associate the bound smart home platform account with the smart home device when the third-party account is associated with the smart home device;
[0100] The authorization takeover module 203 is used to realize the authorization interaction between the smart home client and the voice platform based on the bound smart home platform account through the smart home intermediate service.
[0101] The authorization interaction device for smart home third-party account authorization without user login in the embodiment of the present invention obtains the unique code of the third-party account currently logged in by the smart home client and generates a smart home platform account bound to the unique code of the third-party account. When the third-party account is associated with the smart home device, the bound smart home platform account is synchronously associated with the smart home device. Through the smart home intermediate service, the authorization interaction between the smart home client and the voice platform is realized based on the bound smart home platform account. The smart home intermediate service takes over the third party to realize the authorization service based on the bound smart home platform account, so that the smart home App does not need to use the third-party account system, does not need the third party to develop the account authorization interaction service with the voice platform, supports the integration of the independent third-party user account system and the smart home platform, facilitates the smart home platform to empower the third-party demander, retains the authorization process that does not require an account and password, improves the efficiency of authorization interaction, and enhances the user experience.
[0102] Furthermore, the authorization takeover module 203 includes:
[0103] A request sending module, used to initiate an operation request to the associated smart home device based on the client user token;
[0104] The authorization code generation module is used to call the third-party account service to verify whether the client user token is valid. If it is valid, it generates a smart home intermediate service authorization code and returns it;
[0105] A request receiving module, used to receive an access token acquisition request sent by the voice platform, where the access token acquisition request carries a smart home intermediate service authorization code;
[0106] The authorization code verification module is used to determine whether the smart home intermediate service authorization code is valid through the smart home intermediate service. If it is valid, it generates a smart home platform user token corresponding to the bound smart home platform account and returns the smart home platform user token to the voice platform;
[0107] The voice control module is used to control the associated smart home devices to perform corresponding operations through the voice platform using the smart home platform user token.
[0108] Furthermore, the voice control module includes:
[0109] The voice skill request module is used to send requests to the voice skill service through the voice platform using the smart home platform user token;
[0110] The device search module is used to determine whether the smart home platform user token is valid through the voice skill service, and when the smart home platform user token is valid, obtain the unique code of the third-party account bound to the smart home platform account corresponding to the smart home platform user token, obtain the smart home device associated with the smart home platform account according to the unique code of the bound third-party account and perform corresponding operations on the smart home device.
[0111] Furthermore, the device search module includes:
[0112] A request verification module, used to receive a verification request sent by the voice skill service that carries a smart home platform user token;
[0113] The result return module is used to determine whether the smart home platform user token carried in the verification request is valid through the smart home intermediate service and return the judgment result to the voice skill service.
[0114] Furthermore, the account generation module 201 includes:
[0115] A login judgment module is used to obtain the unique code of the third-party account currently logged in by the smart home client and judge whether the third-party account is logging in to the smart home client for the first time;
[0116] The account binding module is used to generate a smart home platform account bound to the unique code of the third-party account if it is the first time to log in to the smart home client.
[0117] Furthermore, the device association module 202 includes:
[0118] An information receiving module, used to receive association information of a third-party account associated with a smart home device in a smart home client;
[0119] The device adding or deleting module is used to add or delete associated devices for the smart home platform account bound to the third-party account based on the associated information.
[0120] The embodiment of the present invention also provides a schematic diagram of the structure of a computer device, such as Figure 3As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.
[0121] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0122] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0123] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0125] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0126] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0127] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0128] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0129] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A smart home third-party account authorization interaction method without user login, characterized in that: include: Obtain the unique code of the third-party account currently logged in by the smart home client and generate a smart home platform account bound to the unique code of the third-party account; When associating a third-party account with a smart home device, the bound smart home platform account will be synchronously associated with the smart home device; Through the smart home intermediate service, the authorized interaction between the smart home client and the voice platform is realized based on the bound smart home platform account.
2. The authorization interaction method for smart home third-party account authorization without user login according to claim 1, characterized in that: Through the smart home intermediate service, the authorized interaction between the smart home client and the voice platform is realized based on the bound smart home platform account, including: Initiate operation requests for associated smart home devices based on the client user token; Call the third-party account service to verify whether the client user token is valid. If valid, generate and return the smart home intermediate service authorization code; Receive an access token acquisition request sent by the voice platform, wherein the access token acquisition request carries a smart home intermediate service authorization code; Determine whether the smart home intermediate service authorization code is valid through the smart home intermediate service, and if valid, generate a smart home platform user token corresponding to the bound smart home platform account and return the smart home platform user token to the voice platform; Through the voice platform, the smart home platform user token is used to control the associated smart home devices to perform corresponding operations.
3. The authorization interaction method for smart home third-party account authorization without user login according to claim 2, characterized in that: Through the voice platform, the smart home platform user token is used to control the associated smart home devices to perform corresponding operations, including: Sending a request to the voice skill service using the smart home platform user token via the voice platform; The voice skill service is used to determine whether the smart home platform user token is valid, and when the smart home platform user token is valid, the unique code of the third-party account bound to the smart home platform account corresponding to the smart home platform user token is obtained, and the smart home device associated with the smart home platform account is obtained according to the unique code of the bound third-party account and corresponding operations are performed on the smart home device.
4. The authorization interaction method for smart home third-party account authorization without user login according to claim 3, characterized in that: Determining whether the smart home platform user token is valid through the voice skill service includes: Receiving a verification request sent by the voice skill service and carrying the smart home platform user token; The smart home intermediate service determines whether the smart home platform user token carried in the verification request is valid and returns the determination result to the voice skill service.
5. The authorization interaction method for smart home third-party account authorization without user login according to claim 1, characterized in that: Obtain the unique code of the third-party account currently logged in by the smart home client and generate a smart home platform account bound to the unique code of the third-party account, including: Obtain the unique code of the third-party account currently logged in to the smart home client and determine whether the third-party account is logging in to the smart home client for the first time; If it is the first time to log in to the smart home client, a smart home platform account will be generated and bound to the unique code of the third-party account.
6. The authorization interaction method for smart home third-party account authorization without user login according to claim 1, characterized in that: When you associate a third-party account with a smart home device, the bound smart home platform account will be associated with the smart home device simultaneously, including: Receive association information of a third-party account associated with a smart home device in a smart home client; Based on the association information, add or delete associated devices for the smart home platform account bound to the third-party account.
7. An authorization interaction device for smart home third-party account authorization without user login, characterized in that: include: An account generation module, used to obtain the unique code of the third-party account currently logged in by the smart home client and generate a smart home platform account bound to the unique code of the third-party account; The device association module is used to synchronize the bound smart home platform account with the smart home device when the third-party account is associated with the smart home device; The authorization takeover module is used to realize the authorized interaction between the smart home client and the voice platform through the smart home intermediate service based on the bound smart home platform account.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the authorization interaction method for smart home third-party account authorization without user login as described in any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the authorization interaction method for smart home third-party account authorization without user login according to any one of claims 1 to 6.
10. A computer program product, characterized in that It includes computer instructions, which are used to enable a computer to execute the authorization interaction method for smart home third-party account authorization without user login as described in any one of claims 1 to 6.
